![](/img/trans.png)
[英]React Native - Execution failed for task ':app:installDebug'
[英]React Native: Task :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
。 謝謝。
您需要安裝 adbExe。 請按照此鏈接中的步驟操作
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.