2011-12-11 50 views
0

我在臺式機上工作正常,但最近安裝在2.4 Ghz內核2的舊筆記本電腦上,我遇到了一些問題。安卓應用不能在模擬器中啓動

當測試一個應用程序的android,並運行模擬器,它啓動,但完成加載時,從鎖定屏幕開始。然後我解鎖它並回到家中,但我找不到應用程序的位置,因爲它不在應用程序菜單中。所以我認爲不是加載應用程序?

控制檯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... 

如何解決這個好嗎?

+1

你在日誌中看到什麼? –

+0

嗨,請檢查編輯謝謝 – MaKo

回答

4

通知行

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

它說沒有活動被賦予了意向過濾器是你的主要應用和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> 

在這裏閱讀更多:

3

查找到的manifest.xml並檢查是否有您的應用程序的啓動。如果有,請檢查您的日誌文件。