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

前端之家收集整理的这篇文章主要介绍了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

猜你在找的React相关文章