Android gradle issue 'Failed to resolve: suppo

2019-06-24 08:14发布

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'

}

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

Failed to resolve: 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

2条回答
霸刀☆藐视天下
2楼-- · 2019-06-24 08:21

Add below support-core-ui to your dependencies and try again:

com.android.support:support-core-ui:27.1.1

Just for your information now, parts of support-core-ui, support-core-utils, and support-compat into smaller libraries.

Check here: https://developer.android.com/topic/libraries/support-library/revisions

查看更多
狗以群分
3楼-- · 2019-06-24 08:35

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

Based on: https://issuetracker.google.com/issues/80362794

查看更多
登录 后发表回答