'react-native run-android DeviceException Could not create ADB Bridge
I have created a React-Native project. When I run react-native run-ios, the build succeeds. But when I run react-native run-android I get this error:
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge. ADB location: /Applications/ADT/sdk/platform-tools/adb
Thanks in advance.
Solution 1:[1]
I have solve it, The error is because Genymotion use its own SDK not custom SDK location.I solved this question with the URL follow:
React-Native, Android, Genymotion: ADB server didn't ACK
thanks for Simon!
Solution 2:[2]
If you have issue while building your project using react-native run-android and build failed with an exception of not creating adb bridge.
solution:
Go to your project path or any path in command prompt and type : adb kill-server after it again build your project using react-native run-android
Solution 3:[3]
Press CTRL+SHIFT+ESC to open the Task Manager and delete the ADB.EXE process
Solution 4:[4]
If you are using your device over usb for development then it is an error of your adb path.. set the path to D:\Android\sdk\platform-tools... in pc properties->advanced settings->environment variables->system variables..it worked for me.
Solution 5:[5]
1.Go to android sdk path => c:\User\AppData\Local\Android\Sdk\platform-tools 2.Enter adb kill-sever && adb start-server
Solution 6:[6]
i accidentally added adb path directly in environmental variables with name adb instead of Path, when i remove it, this error resolved.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
| Solution 2 | |
| Solution 3 | Italo Rodrigo |
| Solution 4 | Chaitanya Parashar |
| Solution 5 | Priyanga Manivelan |
| Solution 6 |
