android 模拟器无法运行我的应用程序。它启动模拟器但不运行程序

发布于 2024-11-03 13:17:00 字数 1403 浏览 3 评论 0原文

这是控制台窗口的输出:

[2011-04-26 13:49:08 - Snake] ------------------------------

[2011-04-26 13:49:08 - Snake] Android Launch!

[2011-04-26 13:49:08 - Snake] adb is running normally.

[2011-04-26 13:49:08 - Snake] Performing com.example.android.snake.Snake activity launch

[2011-04-26 13:49:08 - Snake] Automatic Target Mode: launching new emulator with compatible AVD 'avd_2.2'

[2011-04-26 13:49:08 - Snake] Launching a new emulator with Virtual Device 'avd_2.2'

[2011-04-26 13:49:13 - Snake] New emulator found: emulator-5554

[2011-04-26 13:49:13 - Snake] Waiting for HOME ('android.process.acore') to be launched...

[2011-04-26 13:54:38 - Snake] WARNING: Application does not specify an API level requirement!

[2011-04-26 13:54:38 - Snake] Device API version is 8 (Android 2.2)

[2011-04-26 13:54:38 - Snake] HOME is up on device 'emulator-5554'

[2011-04-26 13:54:38 - Snake] Uploading Snake.apk onto device 'emulator-5554'

[2011-04-26 13:54:38 - Snake] Installing Snake.apk...

[2011-04-26 13:58:55 - Snake] Failed to install Snake.apk on device 'emulator-5554!

[2011-04-26 13:58:55 - Snake] (null)

[2011-04-26 13:59:01 - Snake] Failed to install Snake.apk on device 'emulator-5554': null

[2011-04-26 13:59:01 - Snake] com.android.ddmlib.InstallException

[2011-04-26 13:59:01 - Snake] Launch canceled!

从日志开始到结束,您可以看到大约需要 10 分钟。是我的电脑的问题还是在模拟器上启动应用程序总是很慢?

This is the output from the console window:

[2011-04-26 13:49:08 - Snake] ------------------------------

[2011-04-26 13:49:08 - Snake] Android Launch!

[2011-04-26 13:49:08 - Snake] adb is running normally.

[2011-04-26 13:49:08 - Snake] Performing com.example.android.snake.Snake activity launch

[2011-04-26 13:49:08 - Snake] Automatic Target Mode: launching new emulator with compatible AVD 'avd_2.2'

[2011-04-26 13:49:08 - Snake] Launching a new emulator with Virtual Device 'avd_2.2'

[2011-04-26 13:49:13 - Snake] New emulator found: emulator-5554

[2011-04-26 13:49:13 - Snake] Waiting for HOME ('android.process.acore') to be launched...

[2011-04-26 13:54:38 - Snake] WARNING: Application does not specify an API level requirement!

[2011-04-26 13:54:38 - Snake] Device API version is 8 (Android 2.2)

[2011-04-26 13:54:38 - Snake] HOME is up on device 'emulator-5554'

[2011-04-26 13:54:38 - Snake] Uploading Snake.apk onto device 'emulator-5554'

[2011-04-26 13:54:38 - Snake] Installing Snake.apk...

[2011-04-26 13:58:55 - Snake] Failed to install Snake.apk on device 'emulator-5554!

[2011-04-26 13:58:55 - Snake] (null)

[2011-04-26 13:59:01 - Snake] Failed to install Snake.apk on device 'emulator-5554': null

[2011-04-26 13:59:01 - Snake] com.android.ddmlib.InstallException

[2011-04-26 13:59:01 - Snake] Launch canceled!

From the beginning of the log to the end, you can see it takes about 10 minutes. Is it my computer or is launching an application on the emulator always so slow?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

抱着落日 2024-11-10 13:17:00

您是否尝试过更改 ADB 连接超时?默认值是 5000,将其更改为 10000 可以提供更多时间来尝试安装所述软件包,它对我有用。
为此,请转至窗口 -> 首选项 -> Android -> DDMS。

Have you tried changing the ADB connection timeout? The default value is 5000, changing this to 10000 gives more time to try and install the said package, it worked for me.
To do this go to window->Preferences->Android->DDMS.

瞄了个咪的 2024-11-10 13:17:00

您是否在 default.properties 中设置了 API 级别?如果没有,请尝试添加 target=android-8

另外,作为旁注,听起来您每次想要测试时都要重新部署模拟器。您可以启动模拟器一次,然后根据需要重新部署应用程序。

Have you set your API level in default.properties? Try adding target=android-8 if you do not have it.

Also, as a side-note, it sounds like you are re-deploying the emulator every time you want to test. You can start up the emulator once and then re-deploy the application to it as needed.

入画浅相思 2024-11-10 13:17:00

检查这个线程。

Honeycomb 预览 - 无法在模拟器上安装我的应用程序在 Eclipse 下

答案 2 对我来说效果很好,即与 AVD 管理器分开启动 AVD >启动,当它显示主页时然后运行您的应用程序

Check this thread .

Honeycomb preview - can not install my app on emulator under Eclipse

Answer number 2 works well for me i.e. start AVD separately from AVD manager > start, when it shows Home then Run your application

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文