Android Projects

Android Development Books

Saturday

Android error: Failed to install *.apk on device *: timeout

 Problem:
[2011-08-28 12:02:57 - SightWords] Android Launch!
[2011-08-28 12:02:57 - SightWords] adb is running normally.
[2011-08-28 12:02:57 - SightWords] Performing com.horror.android.SplashScreen activity launch
[2011-08-28 12:02:57 - SightWords] Automatic Target Mode: Several compatible targets. Please select a target device.
[2011-08-28 12:02:58 - SightWords] Uploading hhhhhh.apk onto device 'emulator-5554'
[2011-08-28 12:03:04 - SightWords] Failed to install hhhhhh.apk on device 'emulator-5554': timeout
[2011-08-28 12:03:04 - SightWords] Launch canceled!

Solution:-

  1. Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.                                                                              OR
  2.  I used to have this problem sometimes, the solution was to change the USB cable to a new one                    OR
  3. I get this a lot. I'm on a Galaxy S too. I unplug the cable from the phone, plug it back in and try launching the app again from Eclipse, and it usually does the trick. Eclipse seems to lose the connection to the phone occasionally but this seems to kick it back to life.                                                                OR
  4. Don't use spaces in your directory names. If you have files that are in such a directory (e.g., stuff inside of C:\Program Files\), copy them to another spot that does not have spaces.                                
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments

Thanks for your comment

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

Related Posts Plugin for WordPress, Blogger...
© Google Android Lovers
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0