5

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

Rez
  • 4,501
  • 1
  • 30
  • 27

2 Answers2

3

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

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

amp
  • 11,754
  • 18
  • 77
  • 133
0

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

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104