Eclipse程序不会运行

时间:2012-05-31 08:49:26

标签: java android eclipse apk

每次我试图通过eclipse运行我的APK我

[2012-05-31 10:09:54 - DZC68] Performing sync
[2012-05-31 10:09:57 - DZC68] Uploading DZC68.apk onto device '0019eb16662fae'
[2012-05-31 10:09:57 - DZC68] Installing DZC68.apk...
[2012-05-31 10:10:00 - DZC68] Success!

它不会在我的手机(SGS2)或Android模拟器上使用我的APK。另一个APK我得到了

[2012-05-31 10:01:18 - VoetbalCoachWNS] Performing voetbalcoah.wns.VoetbalCoachWNSActivity activity launch
[2012-05-31 10:01:20 - VoetbalCoachWNS] Uploading VoetbalCoachWNS.apk onto device '0019eb16662fae'
[2012-05-31 10:01:20 - VoetbalCoachWNS] Installing VoetbalCoachWNS.apk...
[2012-05-31 10:01:22 - VoetbalCoachWNS] Success!
[2012-05-31 10:01:22 - VoetbalCoachWNS] Starting activity voetbalcoah.wns.VoetbalCoachWNSActivity on device 0019eb16662fae

这很好用。它将在我的手机和模拟器上启动APK

2 个答案:

答案 0 :(得分:1)

请尝试以下步骤;这可能会帮助你:

转到项目 - >属性

从左侧列表中选择Android

取消选中“Is Library”复选框

答案 1 :(得分:0)

确保您的清单已使用以下意图过滤器声明了Launcher活动。

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