简体   繁体   中英

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 . 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.

I tried this as well: brew cask install android-platform-tools . Thanks.

You need to install adbExe. Please follow steps in this link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM