I have created a React-Native Project,When I run
react-native run-ios,I get the build successed.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.
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:
thanks for Simon!
If you have issue while building your project using react-native run-android
build failed with an exception of not creating adb bridge.
Go to your project path or any path in command prompt and type :
after it again build your project using react-native run-android
Press CTRL+SHIFT+ESC to open the Task Manager and delete the ADB.EXE process
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.
1.Go to android sdk path =>
adb kill-sever && adb start-server