gpt4 book ai didi

android - React Native:任务:app:installDebug失败

转载 作者:行者123 更新时间:2023-12-03 05:27:11 25 4
gpt4 key购买 nike

我正在 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。谢谢。

最佳答案

您需要安装adbExe。请按照this link中的步骤进行

关于android - React Native:任务:app:installDebug失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60881142/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com