Android应用程序无法在模拟器中启动

时间:2011-12-11 10:51:52

标签: android android-emulator

我在桌面上的日食工作正常,但是最近安装在一台配备2.4 Ghz inter core 2 duo的旧笔记本电脑上,我遇到了一些问题。

在为Android测试应用程序并运行模拟器时,它会启动,但在完成加载后,将从锁定的屏幕开始。然后我解锁它然后回家,但我无法找到应用程序的位置,因为不在应用程序菜单中。所以我认为没有加载应用程序?

console mesage:

[2011-12-11 22:13:58 - ha] ------------------------------
[2011-12-11 22:13:58 - ha] Android Launch!
[2011-12-11 22:13:58 - ha] adb is running normally.
[2011-12-11 22:13:58 - ha] No Launcher activity found!
[2011-12-11 22:13:58 - ha] The launch will only sync the application package on the device!
[2011-12-11 22:13:58 - ha] Performing sync
[2011-12-11 22:13:58 - ha] Automatic Target Mode: launching new emulator with compatible AVD '40'
[2011-12-11 22:13:58 - ha] Launching a new emulator with Virtual Device '40'
[2011-12-11 22:14:08 - Emulator] 2011-12-11 22:14:08.267 emulator-arm[2180:80b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2011-12-11 22:14:08 - ha] New emulator found: emulator-5554
[2011-12-11 22:14:08 - ha] Waiting for HOME ('android.process.acore') to be launched...
[2011-12-11 22:15:00 - ha] HOME is up on device 'emulator-5554'
[2011-12-11 22:15:00 - ha] Uploading ha.apk onto device 'emulator-5554'
[2011-12-11 22:15:01 - ha] Installing ha.apk...

如何解决这个问题?

2 个答案:

答案 0 :(得分:4)

注意这一行

[2011-12-11 22:13:58 - ha] No Launcher activity found!

它表示没有任何活动被Intent-Filter作为您应用程序的MAIN和LAUNCHER活动

AndroidManifest.xml中,它应如下所示:

<activity
    android:name=".NameOfMainActivity">
    <intent-filter >
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

在这里阅读更多内容:

答案 1 :(得分:3)

查看manifest.xml并检查您的应用是否有启动器。如果有,请检查您的日志文件。