Stefano Piovesan
Stefano Piovesan

Reputation: 1215

react-native run-android :app:installDebug failed

I created a react native application react-native init AwesomeProject in Windows8.
I have Genymotion 2.6.0 installed, with a Google Nexus 7.0 image working in the emulator.
I start the server react-native start.
When I run react-native run-android I get this error:

D:\react\AwesomeProject> react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat install
Debug)...
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
...
:app:installDebug
10:47:59 E/ddms: 'C:\eclipse\adt-bundle\sdk\platform-tools\adb.exe,start-server'failed -- run manually if necessary                                                                                                     :app:installDebug                                                                   FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Timeout getting device list.

The same happens with an AVD device (always on Windows8).
Everything works fine instead on my iBook...

Upvotes: 0

Views: 14100

Answers (4)

Anupama Karunarathna
Anupama Karunarathna

Reputation: 117

In my case, I did not have enough space on my device(emulator) to install the app, so I cleared up some space and tried again

Upvotes: 0

Miguel Coder
Miguel Coder

Reputation: 1954

In AVD you have to select an intelx86 atom image for your emulator or ADB won't connect to it for some reason.

You may have to install it in the android package manager in order to use it.

I had to.

Also check out this tutorial. It really helped me get everything up and running.

https://www.youtube.com/watch?v=cnqyUnASuk8

Upvotes: 0

efkan
efkan

Reputation: 13217

I had encountered with the same issue on Windows 10. Also my GenyMotion ADB setting was Use custom Android SDK tools.

When I run the command of adb devices I could see the device as connected.

Then I restarted the pc and it has been resolved.

Upvotes: 2

hackrole
hackrole

Reputation: 121

the error seems like it cannot get the device list.

if you can use shell. try the follow cmdline in the shell.

avd devices

the avd is a cmd tools under the android-sdk/platform-tools.

see detail on the google help page. http://developer.android.com/tools/help/adb.html

Upvotes: 1

Related Questions