Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when I run project this kind of error occurs

Tags:

android

LogCat shows this error,

[2011-05-05 08:57:54 - test] Failed to install test.apk on device 'emulator-5554': timeout
[2011-05-05 08:57:54 - test] Launch canceled!
like image 932
Nikunj Patel Avatar asked May 05 '11 03:05

Nikunj Patel


3 Answers

How about changing adb connection timeout. it's default is 5000 ms.

    Window -> Preferences -> Android -> DDMS -> ADB connection timeout to 10000 ms
like image 127
Hein Avatar answered Nov 11 '22 23:11

Hein


c:
cd\
cd C:\android\platform-tools
adb kill-server
adb start-server

copy the above in a notepad and save it as "ADB_restart.bat". Run it when you get this error. Will probably fix the error. This also fixes lot of connection problems with devices and emulators.

Also as suggested by HERO, Do increase your Timeout.

like image 43
Anoop Chandrika HarisudhanNair Avatar answered Nov 11 '22 22:11

Anoop Chandrika HarisudhanNair


I have noticed that a combination of either restarting eclipse, or the phone/emulator, or both has proven effective in rectifying adb disconnects in many cases... I've never had luck with restarting adb after a disconnect personally

like image 39
Mutmatt Avatar answered Nov 11 '22 22:11

Mutmatt