问题描述
我使用模拟器运行了我的应用程序.上传和上传需要大约 5 分钟的时间.在我的模拟器上安装我的应用程序需要 2 分钟.两分钟后,它失败了.
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.
这是错误控制台,
[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!
我的应用程序位于 E:\Projects
文件夹中.我已将 adb 超时增加到 15000 毫秒.但我仍然看到我的应用程序没有加载到模拟器上.
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.
推荐答案
您可以在 Eclipse 中增加您的 adb 超时设置.转到首选项-> Android-> DDMS-> 找到ADB 连接超时(毫秒)"并给出更高的值.
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.
另外,尝试查看您的模拟器是否已连接到 DDMS.从 DDMS 视图检查或在命令提示符下运行ADB 设备"
Also, try to see if your emulator in connected to the DDMS. Either check from DDMS view or run "ADB devices" in command prompt
这篇关于错误:“无法在设备 'emulator-5554' 上安装 apk:超时"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!