21

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.

dda
  • 6,030
  • 2
  • 25
  • 34
Violetjack
  • 401
  • 1
  • 3
  • 8
  • I have also fixed using following URL: https://stackoverflow.com/questions/35959350/react-native-android-genymotion-adb-server-didnt-ack – Salim Akhtar Aug 07 '18 at 05:27

6 Answers6

17

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!

Community
  • 1
  • 1
Violetjack
  • 401
  • 1
  • 3
  • 8
12

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

Rohit Jangid
  • 2,291
  • 1
  • 11
  • 9
  • Thanks for this solution. It worked great, but I would like to understand why. What is adb? What happens when the 'adb kill-server' cmd is used? – Grez.Kev Dec 13 '17 at 18:42
  • Hi @Grez.Kev, please check that link(https://developer.android.com/studio/command-line/adb). 'adb kill-server' kills the system abd service which is running in background. – Rohit Jangid Nov 25 '18 at 18:45
2

Press CTRL+SHIFT+ESC to open the Task Manager and delete the ADB.EXE process

Italo Rodrigo
  • 1,555
  • 5
  • 17
  • 38
0

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.

Chaitanya Parashar
  • 692
  • 2
  • 12
  • 21
0

1.Go to android sdk path => c:\User\AppData\Local\Android\Sdk\platform-tools 2.Enter adb kill-sever && adb start-server

Priyanga Manivelan
  • 432
  • 1
  • 5
  • 14
0

i accidentally added adb path directly in environmental variables with name adb instead of Path, when i remove it, this error resolved.

Asad Ali
  • 13
  • 2