Increase Android Emulator Timeout time


Posted on : Tue, 19th May 15 01:35 pm UTC
100+ votes

I have seen that my Android IDE LogCat console keeps throwing the below stated error message, sometimes when i try to run the app on Emulator (especially one thats running Android Lollipop version 5.1 API 22), the Uploading stage takes a bit of more time and thus Launch canceled! error, when i try again sometimes it works sometimes it doesn't,

[2015-05-19 18:39:32 - example] Android Launch!
[2015-05-19 18:39:32 - example] adb is running normally.
[2015-05-19 18:39:32 - example] Performing com.example.example.CreateQuizActivity activity launch
[2015-05-19 18:39:32 - example] Uploading Example.apk onto device 'emulator-5554'
[2015-05-19 18:39:41 - Quizziuq] Failed to install Example.apk on device 'emulator-5554': timeout
[2015-05-19 18:39:41 - example] Launch canceled!

To resolve this issue you gotta increate the Timeout time value set in for ADB. This can be done by,

  1. Go to Window -> Preferences (if you are using Windows OS) or Eclipse -> Preferences (if you are using Mac OS X) or Android Studio -> Preferences (if you are using Mac OS X)
  2. Now goto Android tab,
  3. Select DDMS under Android.
  4. You would see : ADB connection time out (ms) : 5000.
  5. Change the value from 5000 to say 15000 or more.
  6. Click on Apply.
  7. Click on OK.
  8. Now try running the App again on Emulator.
Increase Android Device timeout value


Snapshot : Increase Android Device timeout value

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +