0

Working off a completely functional code-base I created a copy to develop a separate application.

While attempting to debug on android via Eclipse I see:

[2013-09-17 01:29:04 - TarotAdvanced-Android] Android Launch!
[2013-09-17 01:29:04 - TarotAdvanced-Android] adb is running normally.
[2013-09-17 01:29:04 - TarotAdvanced-Android] No Launcher activity found!
[2013-09-17 01:29:04 - TarotAdvanced-Android] The launch will only sync the application      package on the device!
[2013-09-17 01:29:04 - TarotAdvanced-Android] Performing sync
[2013-09-17 01:29:13 - TarotAdvanced-Android] Uploading TarotAdvanced-Android.apk onto device '015d16897a540607'
[2013-09-17 01:29:21 - TarotAdvanced-Android] Installing TarotAdvanced-Android.apk...
[2013-09-17 01:29:24 - TarotAdvanced-Android] Success!
[2013-09-17 01:29:24 - TarotAdvanced-Android] \TarotAdvanced-Android\bin\TarotAdvanced-Android.apk installed on device
[2013-09-17 01:29:24 - TarotAdvanced-Android] Done!

And then nothing happens. I've already disabled automatic debug target selection so that it prompts me for the device. Before the above occurs I'm prompted for my target device. It doesn't matter what device I use. The end result is the same, messages of installation but the application (apk) is no where to be found on the device. Whereas with the source of the copy I can always find the apk the debugger copied over.

If I manually copy over the APK and install it on the device then it works fine. Eclipse is glitching out. How do I work around this?

4

3 回答 3

1

将此添加到您的Manifest

<activity  android:name="YourPackage.ActivityName"
            android:label="@string/app_name" >
               <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
</activity>
于 2013-09-17T05:54:50.217 回答
0

我最近遇到了这个问题,这对我有用。

从 Eclipse->Run->Debug Configuration->右键单击 Android 应用程序->Delete。之后,回到 Run->Debug As->Android Application

希望这对某人有帮助!

于 2014-08-13T18:12:37.860 回答
-1

您是否打开了更多的 Eclipse 实例?如果是这样,有时调试不会开始。关闭其他 Eclipse 实例并尝试调试。

于 2013-09-17T05:49:19.243 回答