2

After upgrading the code, I am getting an error "Failed to resolve: support-media-compat Open File". The supportlib_version is 27.1.1

enter image description here

Zoe
  • 27,060
  • 21
  • 118
  • 148
Droid Genie
  • 351
  • 4
  • 15

2 Answers2

9

I had the same issue after adding implementation 'com.android.support:support-v4:27.1.1' and solved it by making google() before jcenter() as mentioned here Failed to resolve: com.android.support:appcompat-v7:27.+ (Dependency Error)

Hasan El-Hefnawy
  • 1,249
  • 1
  • 14
  • 20
0

I had similar problem for different implementation

allprojects {
repositories {
    maven {url "https://maven.google.com"}
    }
}

After adding this code in project level gradle, it worked

Praful C
  • 162
  • 1
  • 3
  • 14