您的位置:首页 > 移动开发 > Android开发

菜鸟初学Android开发:Android Snake工程加载超时问题

2011-11-19 17:41 627 查看
本人第一次学习用Eclipse来开发Android应动应用程序,按照资料上的说明,一步一步的加载样例工程Snake时,报了如下的错误:

[2011-11-19 17:00:34 - Snake] Android Launch!

[2011-11-19 17:00:34 - Snake] adb is running normally.

[2011-11-19 17:00:34 - Snake] Performing com.example.android.snake.Snake activity launch

[2011-11-19 17:00:34 - Snake] Automatic Target Mode: Preferred AVD 'Android_IceCream4.0' is not available. Launching new emulator.

[2011-11-19 17:00:34 - Snake] Launching a new emulator with Virtual Device 'Android_IceCream4.0'

[2011-11-19 17:00:39 - Emulator] emulator: emulator window was out of view and was recentered

[2011-11-19 17:00:39 - Emulator]

[2011-11-19 17:00:39 - Snake] New emulator found: emulator-5554

[2011-11-19 17:00:39 - Snake] Waiting for HOME ('android.process.acore') to be launched...

[2011-11-19 17:03:21 - Snake] WARNING: Application does not specify an API level requirement!

[2011-11-19 17:03:21 - Snake] Device API version is 14 (Android 4.0.1)

[2011-11-19 17:03:21 - Snake] HOME is up on device 'emulator-5554'

[2011-11-19 17:03:21 - Snake] Uploading Snake.apk onto device 'emulator-5554'

[2011-11-19 17:03:22 - Snake] Installing Snake.apk...

[2011-11-19 17:05:27 - Snake] Failed to install Snake.apk on device 'emulator-5554!

[2011-11-19 17:05:27 - Snake] (null)

[2011-11-19 17:05:27 - Snake] Failed to install Snake.apk on device 'emulator-5554': EOF

[2011-11-19 17:05:27 - Snake] com.android.ddmlib.InstallException: EOF

[2011-11-19 17:05:27 - Snake] Launch canceled!

在网上查了一把资料,应该是ADB的超时时间设的太短,而应用程序加载的又太慢所导致。因此,修改超时时间如下:

菜单"Windows" -> "Preference" -> "Android" -> "DDMS", 将"ADB Connection time out(ms):"的值从5000修改为10000.

OK, 问题解决了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: