我目前正在关注创建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!
有什么想法吗?
答案 0 :(得分:2)
您使用的是Eclipse吗?
您以前是否能够运行该程序?
如果可以重新启动模拟器/计算机(请先尝试重新启动模拟器)。 我曾经在蓝色的月亮中遇到过这个错误,只重新启动用来解决它的计算机。
我还没弄清楚为什么会这样。
答案 1 :(得分:0)
在我的情况下,它通过重新启动Eclipse并重新启动模拟器来工作!
尝试一次。
答案 2 :(得分:0)
将项目的属性:Properties / Android / Project Build Target更改为Android 4.4.2 API 19,应用程序应该可以运行。