小编Moh*_*hde的帖子

npx react-native run-android 不会启动模拟器,并且如果模拟器正在运行也不会运行

我已经使用react-native 0.63创建了一个新项目\n当我在ios模拟器上运行时一切正常\n但是当尝试在android上运行它时,它不起作用并给我这个错误

\n
FAILURE: Build failed with an exception.\n\n* What went wrong:\nCould not determine the dependencies of task \':app:installDebug\'.\n> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project\'s local properties file at \'/Volumes/SSD2/developer/MyProject/AwesomeProject/android/local.properties\'.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 2s\n\nerror Failed …
Run Code Online (Sandbox Code Playgroud)

macos android android-emulator react-native

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

android-emulator ×1

macos ×1

react-native ×1