1

我目前只是在关注创建 android 应用程序的教程(http://developer.android.com/training/basics/firstapp/building-ui.html)。我认为我遵循了所有说明,但似乎无法按照他们的说明运行提供的示例应用程序。这是eclipse提供的响应:

[2012-11-03 14:18:06 - My First App] ------------------------------
[2012-11-03 14:18:06 - My First App] Android Launch!
[2012-11-03 14:18:06 - My First App] adb is running normally.
[2012-11-03 14:18:06 - My First App] Performing com.example.my.first.app.MainActivity activity launch
[2012-11-03 14:18:06 - My First App] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'TestDevice1'
[2012-11-03 14:18:06 - My First App] Uploading My First App.apk onto device 'emulator-5554'
[2012-11-03 14:18:07 - My First App] Installing My First App.apk...
[2012-11-03 14:20:22 - My First App] Failed to install My First App.apk on device 'emulator-5554!
[2012-11-03 14:20:22 - My First App] (null)
[2012-11-03 14:20:22 - My First App] Launch canceled!
[2012-11-03 14:23:00 - My First App] ------------------------------
[2012-11-03 14:23:00 - My First App] Android Launch!
[2012-11-03 14:23:00 - My First App] adb is running normally.
[2012-11-03 14:23:00 - My First App] Performing com.example.my.first.app.MainActivity activity launch
[2012-11-03 14:23:00 - My First App] Automatic Target Mode: using existing emulator 
'emulator-5554' running compatible AVD 'TestDevice1'
[2012-11-03 14:23:00 - My First App] Uploading My First App.apk onto device 'emulator-5554'
[2012-11-03 14:23:01 - My First App] Installing My First App.apk...
[2012-11-03 14:25:24 - My First App] Failed to install My First App.apk on device 'emulator-5554!
[2012-11-03 14:25:24 - My First App] (null)
[2012-11-03 14:25:25 - My First App] Launch canceled!

有任何想法吗?

4

3 回答 3

2

你在使用 Eclipse 吗?

您以前是否能够运行该程序?

如果您可以重新启动您的模拟器/计算机(请先尝试重新启动您的模拟器)。我曾经在一个蓝月亮中遇到过这个错误,只有重新启动用于解决它的计算机。

我还没弄清楚为什么会这样。

于 2012-11-03T14:46:31.617 回答
0

在我的情况下,它通过重新启动 Eclipse 并重新启动 Emulator 来工作!

试一试。

于 2013-07-02T04:19:57.730 回答
0

将项目的属性:Properties/Android/Project Build Target 更改为 Android 4.4.2 API 19,应用程序应该可以运行。

于 2014-08-10T19:48:41.373 回答