Android – React Native FAILURE: Build failed with an exception. Could not resolve ‘:classpath’. Could not find com.android.tools.build:gradle:3.0.1

androidclasspathgradle-3.0react-native

When I make the command "react-native run-android" then it happened:

FAILURE: Build failed with an exception.

screenshot:

enter image description here

Best Answer

I had the same problem, I tried Manoj Prabhakar's solution but I fixed adding the google() repository to the buildscript block in the project level build.gradle

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}