Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
522 views
in Technique[技术] by (71.8m points)

android - Error: "Failed to install apk on device 'emulator-5554': timeout"

I have run my application using an emulator. Its taking so long time of about 5 mins to upload & 2 mins of installing my application on my emulator. After the two minutes it fails.

This is the Error console,

[2013-03-28 14:13:18 - newwaterreadingapp] ------------------------------
[2013-03-28 14:13:18 - newwaterreadingapp] Android Launch!
[2013-03-28 14:13:18 - newwaterreadingapp] adb is running normally.
[2013-03-28 14:13:18 - newwaterreadingapp] Performing     
com.example.newwaterreadingapp.MainActivity activity launch
[2013-03-28 14:13:18 - newwaterreadingapp] Automatic Target Mode: using existing     emulator 'emulator-5556' running compatible AVD 'NewAvd_water_electricity_reading'
[2013-03-28 14:13:18 - newwaterreadingapp] Uploading newwaterreadingapp.apk onto device 'emulator-5556'
[2013-03-28 14:18:31 - newwaterreadingapp] Installing newwaterreadingapp.apk...
[2013-03-28 14:20:35 - newwaterreadingapp] Failed to install newwaterreadingapp.apk on   device 'emulator-5556!
[2013-03-28 14:20:35 - newwaterreadingapp] (null)
[2013-03-28 14:20:37 - newwaterreadingapp] Launch canceled!

My application is located in E:Projects folder. And I have increased my adb timeout to 15000ms. But still I see that my application is not loaded on to emulator.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Yon can increase your adb timeout setting in eclipse. Go to Preferences-> Android-> DDMS-> find "ADB connection time out (ms)" and give some more higher value.

Also, try to see if your emulator in connected to the DDMS. Either check from DDMS view or run "ADB devices" in command prompt


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...