我正在尝试在eclipse中创建一个Android应用程序。当我运行应用程序时它正在显示
[2013-06-26 11:14:41 - FirstApp] Android Launch!
[2013-06-26 11:14:41 - FirstApp] adb is running normally.
[2013-06-26 11:14:41 - FirstApp] Performing com.example.firstapp.MainActivity activity launch
[2013-06-26 11:14:41 - FirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'Test'
[2013-06-26 11:14:41 - FirstApp] Launching a new emulator with Virtual Device 'Test'
[2013-06-26 11:14:50 - FirstApp] New emulator found: emulator-5554
[2013-06-26 11:14:50 - FirstApp] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-26 11:16:24 - FirstApp] HOME is up on device 'emulator-5554'
[2013-06-26 11:16:24 - FirstApp] Uploading FirstApp.apk onto device 'emulator-5554'
[2013-06-26 11:16:25 - FirstApp] Installing FirstApp.apk...
[2013-06-26 11:18:30 - FirstApp] Failed to install FirstApp.apk on device 'emulator-5554!
[2013-06-26 11:18:30 - FirstApp] (null)
[2013-06-26 11:18:30 - FirstApp] Launch canceled!
答案 0 :(得分:1)
我也遇到过同样的问题,下列其中一项应该适合你: -
如果重新启动设备不起作用,请尝试将上传超时增加到非常大的20000毫秒。它位于Window→首选项→Android→DDMS→“ADB连接超时(ms)”。
答案 1 :(得分:1)
也请发布您的AndroidManifest.xml
代码。我想你没有为Activity启动以下代码。
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
如果出现任何logcat
错误/警告,请同时发布。所以,我们可以做得更好。
答案 2 :(得分:0)
尝试并格式化日志输出,以便更好地读取。但是,很可能你的Manifest中有错误。在安装应用程序时检查adb logcat
(或DDMS透视图中的Logcat选项卡)。你应该看到一些关于android与你的应用程序完全不同的信息。