简体   繁体   English

React Native:任务:应用程序:安装调试失败

[英]React Native: Task :app:installDebug FAILED

I am working on MAC , trying to run React Native on android but it throws this error: Task :app:installDebug FAILED .我在MAC 上工作,试图在android上运行 React Native,但它抛出了这个错误: Task :app:installDebug FAILED This is the full error:这是完整的错误:

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.

I've tried reinstalling Android Studio twice as well as creating a new project for RN but that didn't help me out.我试过两次重新安装 Android Studio 以及为 RN 创建一个新项目,但这并没有帮助我。

I tried this as well: brew cask install android-platform-tools .我也试过这个: brew cask install android-platform-tools Thanks.谢谢。

You need to install adbExe.您需要安装 adbExe。 Please follow steps in this link请按照此链接中的步骤操作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 React Native-任务':app:installDebug'的执行失败 - React Native - Execution failed for task ':app:installDebug' 任务':app:installDebug'的执行失败反应本机应用程序 - Execution failed for task ':app:installDebug' react native app react-native:app:installDebug 失败 - react-native :app:installDebug FAILED 反应本机任务:应用程序:安装调试失败。 应用程序无法启动 - React native Task :app:installDebug FAILED. App won't start 如何修复错误说“任务:app:installDebug FAILED”,同时在android studio中运行我的反应本机项目? - How to fix error saying “Task :app:installDebug FAILED”, while run my react native project in android studio? React-Native(Android)错误:任务:app:installDebug FAILED(macOs Big Sur) - React-Native (Android) error : Task :app:installDebug FAILED (macOs Big Sur) React Native:Task:app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 - React Native : Task :app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 React Native:无法确定任务“:app:installDebug”的依赖关系 - React Native: Could not determine the dependencies of task ':app:installDebug' 任务“installDebug”在项目“:app”中不明确 - 使用 android 风格的 React Native - Task 'installDebug' is ambiguous in project ':app' - React Native with android flavors react-native run-android:app:installDebug 失败 - react-native run-android :app:installDebug failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM