Nag*_*raj 66 eclipse android android-install-apk
我是Android新手.当我在eclipse中运行我的android应用程序时,我在控制台中收到这些消息:
[2011-03-08 12:57:35 - HelloWorld] ------------------------------
[2011-03-08 12:57:35 - HelloWorld] Android Launch!
[2011-03-08 12:57:35 - HelloWorld] adb is running normally.
[2011-03-08 12:57:35 - HelloWorld] Performing com.oreilly.helloworld.HelloWorldActivity activity launch
[2011-03-08 12:57:35 - HelloWorld] Automatic Target Mode: Preferred AVD 'MY_AVD' is not available. Launching new emulator.
[2011-03-08 12:57:35 - HelloWorld] Launching a new emulator with Virtual Device 'MY_AVD'
[2011-03-08 12:57:39 - HelloWorld] New emulator found: emulator-5554
[2011-03-08 12:57:39 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2011-03-08 13:00:14 - HelloWorld] WARNING: Application does not specify an API level requirement!
[2011-03-08 13:00:14 - HelloWorld] Device API version is 11 (Android 3.0)
[2011-03-08 13:00:14 - HelloWorld] HOME is up on device 'emulator-5554'
[2011-03-08 13:00:14 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
[2011-03-08 13:00:14 - HelloWorld] Installing HelloWorld.apk...
[2011-03-08 13:02:22 - HelloWorld] Failed to install HelloWorld.apk on device 'emulator-5554!
[2011-03-08 13:02:22 - HelloWorld] (null)
[2011-03-08 13:02:23 - HelloWorld] Launch canceled!
Run Code Online (Sandbox Code Playgroud)
如何解决问题以便我的应用程序启动?
Dha*_*ant 103
尝试更改ADB连接超时.我认为它默认为5000毫秒,我把我改为10000毫秒来解决这个问题.如果您在Eclipse中,可以通过浏览Window - > Preferences然后在Android下的DDMS中执行此操作.
如下所述:Android错误:无法在设备上安装*.apk*:timeout
我不时得到这个,但它通常与模拟器启动缓慢有关.重试时不要在重试之间关闭模拟器.如果仍然失败,请发布客户端日志(logcat).
另一个原因可能是ghost Eclipse进程在后台运行并仍然绑定到调试端口.关闭eclipse,查看进程列表,看看是否还在运行Eclipse.杀掉所有这些并重新启动Eclipse.
| 归档时间: |
|
| 查看次数: |
118871 次 |
| 最近记录: |