I\'ve setup the environment for react native on Windows. But when I run the command
react-native run-android
I get the following errors -<
this because your classpath build tools in build.gradle root project is deprecated update like this for new android studio 3.1.2
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
}
}
and after that update your minimum sdk and build tools to latest and no problem again