在Android模拟器中,Android应用已成功安装并显示在设置 - >下应用,但未在应用主屏幕上显示

时间:2014-02-17 21:38:43

标签: java android google-maps

我安装了应用程序并收到以下消息

------------------------------
[2014-02-17 13:02:42 - Stealth1] Android Launch!
[2014-02-17 13:02:42 - Stealth1] adb is running normally.
[2014-02-17 13:02:42 - Stealth1] No Launcher activity found!
[2014-02-17 13:02:42 - Stealth1] The launch will only sync the application package on the device!
[2014-02-17 13:02:42 - Stealth1] Performing sync
[2014-02-17 13:02:42 - Stealth1] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Stealth1'
[2014-02-17 13:02:42 - Stealth1] Uploading Stealth1.apk onto device 'emulator-5554'
[2014-02-17 13:02:42 - Stealth1] Installing Stealth1.apk...
[2014-02-17 13:02:49 - Stealth1] Success!
[2014-02-17 13:02:50 - Stealth1] /Stealth1/bin/Stealth1.apk installed on device
[2014-02-17 13:02:50 - Stealth1] Done!

我可以在设置 - >下找到安装在模拟器中的应用。应用。但是我应该如何运行该应用程序。我试过从eclipse运行它。我仍然无法逃跑。当我从命令行运行时,我得到了

1934 KB/s (288622 bytes in 0.145s)
    pkg: /data/local/tmp/Stealth1.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]

1 个答案:

答案 0 :(得分:1)

您需要在AndroidManifest.xml中为主Activity设置LAUNCHER类别。例如:

        <intent-filter android:label="@string/app_name">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>