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 stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
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
  • 871
  • 1
  • 11
  • 19
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
  • 152
  • 1
  • 3
  • 12