【发布时间】:2020-10-21 08:07:38
【问题描述】:
我正在尝试使用命令 react-native run-android 在模拟器中运行我的 react 本机应用程序,但它抛出了该错误
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 44s
info Connecting to the development server...
warn Failed to connect to development server using "adb reverse": spawnSync /Opt/Android/platform-tools/adb ENOENT
info Starting the app...
The system cannot find the path specified.
error Failed to start the app. Run CLI with --verbose flag for more details.
Error: Command failed: /Opt/Android/platform-tools/adb shell am start -n com.reactproject/com.reactproject.MainActivity
at makeError (C:\Users\Danger World\ReactProject\node_modules\execa\index.js:174:9)
我已经设置了我的 android studio 和 sdk 管理器,avd 管理器就像它在文档中显示的那样,我也已经设置了路径,但它仍然显示该错误,有人知道为什么吗?有人可以帮忙吗?
【问题讨论】:
标签: javascript android react-native