【发布时间】:2013-11-11 15:16:58
【问题描述】:
我在启动我的测试应用程序时遇到错误,我是android开发的新手,希望你们能帮助我。
这是我的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jhaydev.weirdgeeks"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.jhaydev.weirdgeeks.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.jhaydev.weirdgeeks.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.jhaydev.weirdgeeks.Menu"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.jhaydev.weirdgeeks.MENUA" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
我收到以下错误:
[2013-11-11 22:59:16 - WeirdGeeks] Android 发布! [2013-11-11 22:59:16 - WeirdGeeks] adb 运行正常。 [2013-11-11 22:59:16 - WeirdGeeks] 未找到启动器活动! [2013-11-11 22:59:16 - WeirdGeeks] 启动只会同步应用包 设备!
谢谢。
【问题讨论】:
-
错误是什么。你能分享你的日志猫吗?
-
这可能是因为您没有为启动器活动提及正确的类名
-
[2013-11-11 22:59:16 - WeirdGeeks] ------------------------- -- [2013-11-11 22:59:16 - WeirdGeeks] Android 发布! [2013-11-11 22:59:16 - WeirdGeeks] adb 运行正常。 [2013-11-11 22:59:16 - WeirdGeeks] 未找到启动器活动! [2013-11-11 22:59:16 - WeirdGeeks] 此次发布只会同步设备上的应用包!
-
如何正确提及?我是新手,我只是按照视频教程中的内容进行操作。请帮帮我。
-
没问题。在此之前清理并运行您的项目,确保 com.jhaydev.weirdgeeks 包中的 MainActivity