Failed to Resolve: support-core-utils, support-compat, support-media-compat

I use Android Studio 3.3 to open an old project and bump into the following errors

  • ERROR: Failed to resolve: support-core-utils
  • ERROR: Failed to resolve: support-compat
  • ERROR: Failed to resolve: support-media-compat

The old project is using

  • compileSdkVersion 27
  • targetSdkVersion 27
  • buildToolsVersion unspecified
  • support libraries: 27.1.1

Android Studio 3.3 is using Android Gradle 3.2.1

NOTE: Android Studio Check Gradle Version

3.2.1 (October 2018)

With this update, you no longer need to specify a version for the SDK Build Tools. The Android Gradle plugin now uses version 28.0.3 by default.

It seems Android is using buildToolsVersion '28.0.3', and it would be advisable to upgrade SDK version and support library to 28 as well.

  • compileSdkVersion 28
  • targetSdkVersion 28

Support libraries

// https://mvnrepository.com/artifact/com.android.support/appcompat-v7?repo=google
def suppLibVersion = '28.0.0'

dependencies {
    implementation 'com.android.support:appcompat-v7:' + suppLibVersion
    implementation 'com.android.support:recyclerview-v7:' + suppLibVersion
    implementation 'com.android.support:cardview-v7:' + suppLibVersion
    implementation 'com.android.support:gridlayout-v7:' + suppLibVersion
    implementation 'com.android.support:support-v4:' + suppLibVersion
    implementation 'com.android.support:design:' + suppLibVersion
    implementation 'com.android.support:customtabs:' + suppLibVersion
}

The problems is resolved after changing SDK and support libraries version to 27.

NOTE: Probably need to migrate to androidx next.

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.