菜鸟初学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, 问题解决了!
[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, 问题解决了!
相关文章推荐
- Android 开发问题 —— 加载大图、多图后程序OOM
- Android开发中如何解决加载大图片时内存溢出的问题
- 初学Android开发之十大经典问题解答
- 安卓-开发常见问题之修改android工程的jar包版本
- Android开发解决加载图片OOM问题(非常全面 兼顾4.0以下系统)(by 星空武哥)
- 解决Android开发中加载html页面乱码的问题
- 关于android开发时在v7包下无法加载recyclerview的问题
- Android开发中如何解决加载大图片时内存溢出的问题
- android 开发比较大的工程时会内存溢出的问题
- android开发 友盟推送点击Notification使用WebView加载url同时会调用系统浏览器的问题
- Android开发-windows中的工程导入到linux下Eclipse中乱码问题
- Android开发中如何解决加载大图片时内存溢出的问题
- Android菜鸟学习笔记(WebView加载html页面,页面提交数据问题)
- Android 百度地图开发问题----解决地图有时候加载不出来问题
- android游戏开发按锁屏键导致游戏重新加载问题
- Android开发技巧——TextView加载HTML的图片及代码显示问题
- android 初学开发常见问题
- Android 4.2 工程导入 5.0 SDK Eclipse 开发环境出现的问题总结
- Android开发——解决加载大图片时内存溢出的问题
- Android开发中如何解决加载大图片时内存溢出的问题