react-native run-android报错A problem occurred configuring project ':app'. > SDK location not found

Building and installing the app on the device (cd android && gradlew.bat installDebug)...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

rn工程android\目录下新建local.properties文件

sdk.dir=C\:\\Users\\jiong\\AppData\\Local\\Android\\Sdk

你可能感兴趣的:(Android)