gpt4 book ai didi

java - Eclipse-未找到启动器 Activity

转载 作者:太空宇宙 更新时间:2023-11-04 13:13:16 26 4
gpt4 key购买 nike

我遇到了这个问题。

当我在模拟器中运行我的应用程序时,控制台显示当我已在 xml 文件中添加启动器 Activity 时未找到启动器 Activity 。这是控制台日志

[2015-11-17 22:13:51 - Kamus2] ------------------------------
[2015-11-17 22:13:51 - Kamus2] Android Launch!
[2015-11-17 22:13:51 - Kamus2] adb is running normally.
[2015-11-17 22:13:51 - Kamus2] No Launcher activity found!
[2015-11-17 22:13:51 - Kamus2] The launch will only sync the application package on the device!
[2015-11-17 22:13:51 - Kamus2] Performing sync
[2015-11-17 22:13:51 - Kamus2] Automatic Target Mode: launching new emulator with compatible AVD 'MyAndroid'
[2015-11-17 22:13:51 - Kamus2] Launching a new emulator with Virtual Device 'MyAndroid'
[2015-11-17 22:14:00 - Kamus2] New emulator found: emulator-5554
[2015-11-17 22:14:00 - Kamus2] Waiting for HOME ('android.process.acore') to be launched...
[2015-11-17 22:16:08 - Kamus2] HOME is up on device 'emulator-5554'
[2015-11-17 22:16:08 - Kamus2] Uploading Kamus2.apk onto device 'emulator-5554'
[2015-11-17 22:16:08 - Kamus2] Installing Kamus2.apk...
[2015-11-17 22:17:50 - Kamus2] Success!
[2015-11-17 22:17:51 - Kamus2] \Kamus2\bin\Kamus2.apk installed on device
[2015-11-17 22:17:51 - Kamus2] Done!

这是androidmanifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.han"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
/>


<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".MainActivity" >
<intent-filter >
<action android:name="android.intent.action.ACTIVITY_MAIN" />

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

<activity android:name="Translate" >
<intent-filter>
<action android:name="android.intent.action.ACTIVITY_TRANSLATE" />
</intent-filter>
</activity>

<activity android:name="Insert" >
<intent-filter>
<action android:name="android.intent.action.ACTIVITY_INSERT" />
</intent-filter>
</activity>

<activity android:name="Delete" >
<intent-filter>
<action android:name="android.intent.action.ACTIVITY_DELETE" />
</intent-filter>
</activity>

<activity android:name="Help" >
<intent-filter>
<action android:name="android.intent.action.ACTIVITY_HELP" />
</intent-filter>
</activity>


</application>

</manifest>

非常感谢您的帮助。谢谢

最佳答案

试试这个 -

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />

您的targetsdk版本缺失

关于java - Eclipse-未找到启动器 Activity ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33767158/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com