React Native 环境搭建完成,创建项目后,
运行报错:
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 f
ile or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 13.533 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

在尝试运行React Native项目时遇到'FAILURE: Build failed with an exception.'错误,指出SDK位置未找到。解决方法包括:1) 设置系统环境变量ANDROID_HOME指向Android SDK安装目录;2) 在项目android目录下创建local.properties文件,添加sdk.dir配置项,指定SDK路径。
最低0.47元/天 解锁文章
1104

被折叠的 条评论
为什么被折叠?



