本文介绍了Android Gradle问题“无法解决:support-core-ui"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这就是我作为项目依赖项的全部内容

This is all I have as my project's dependencies:

dependencies {
implementation "com.android.support:appcompat-v7:27.1.1"
implementation "com.android.support:support-v4:27.1.1"
api "com.android.support:mediarouter-v7:27.1.1"
api "com.google.android.gms:play-services-cast-framework:15.0.1"
implementation 'com.jakewharton.timber:timber:4.7.0'

}

在尝试同步我的android gradle之后,我得到了:

And after trying to sync my android's gradle I get:

我知道support-v4中包含了support-core-ui,但我想不出任何解决方案,如果有人对此有任何想法,我将不胜感激

I know that the support-core-ui is included inside support-v4 but I can't think of any solution, I'd be thankful if anyone had any idea about this

推荐答案

在Project build中的jcenter()存储库之前放置google()存储库.gradle解决了该问题.

Placing the google() repo before the jcenter() repo in the Project build.gradle fixed the issue.

基于: https://issuetracker.google.com/issues/80362794

这篇关于Android Gradle问题“无法解决:support-core-ui"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 05:10