Could not find support-core-utils.jar (com.android.support:support-core-utils:27.1.1) Error Fix

By Rashid •  November 1st, 2018 • 

If you are developing Android apps with react native then you may face this react native issue > Could not find support-core-utils.jar (com.android.support:support-core-utils:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-core-utils/27.1.1/support-core-utils-27.1.1.jar

This react native issue occurs when you use third-party libraries such as react-native-admob. This Android specific issue can be solved quickly. Open android>build.gradle file and make the google() first in the allprojects tag as given below.

allprojects {
    repositories {
        google()
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }

The issue will be resolved when you rebuild your react native project again.

 

Rashid

Keep Reading