android - React Native:任务:app:installDebug FAILED
问题描述
我正在研究MAC,试图在android上运行 React Native,但它抛出了这个错误:Task :app:installDebug FAILED
. 这是完整的错误:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
27 actionable tasks: 2 executed, 25 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:installDebug'.
> File '/Users/vinaysharma/Library/Android/sdk/platform-tools/adb' specified for property 'adbExe' does not exist.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8088
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:installDebug'.
> File '/Users/vinaysharma/Library/Android/sdk/platform-tools/adb' specified for property 'adbExe' does not exist.
我已经尝试过两次重新安装 Android Studio 以及为 RN 创建一个新项目,但这并没有帮助我。
我也试过这个:brew cask install android-platform-tools
。谢谢。
解决方案
You need to install adbExe. Please follow steps in this link
推荐阅读
- c++ - 将集合的随机元素添加到列表中并将其从原始集合中删除
- python - DICOM 文件的医学图像质量问题
- java - 构造函数的自定义摆动组件问题
- django - 如何从查询集中创建一个 Select-Field 并在表单中实现它
- kubernetes - how to list the number of ready nodes in a cluster which don't have a taint
- ns2 - 如何计算数据包 AODV 的延迟
- html - CSS图像改变大小
- android - 在移动应用程序中加载元数据的最佳策略是什么?
- javascript - 使用 Javascript processing.js 库在移动时更改对象的形状
- c - 当我有 libmpi.so.40 和 libmpi.so 时,libmpi.so.12 无法打开共享对象文件