Android java.lang.RuntimeException:无法为启动活动实例化活动组件信息java.lang.ClassNotFoundException
无法为Splash活动实例化活动组件信息java.lang.ClassNotFoundException时出错。它没有显示所有设备中的错误,这就是为什么我无法检查它。 我正在我的项目中使用ActionBarSherLock。 我也检查了舱单。这里添加了飞溅活动。 Play Store的Logcat: 如果有任何错误,请检查属性快照->Android和Java构建路径。但我第一次犯这个错误是因为android应用程序的新版本。 我已将android-support-v4文件分配给另一个非当前项目的ActionBarSherLock。当前项目包含自己的android-support-v4.jar文件。 舱单:Android java.lang.RuntimeException:无法为启动活动实例化活动组件信息java.lang.ClassNotFoundException,android,android-activity,Android,Android Activity,无法为Splash活动实例化活动组件信息java.lang.ClassNotFoundException时出错。它没有显示所有设备中的错误,这就是为什么我无法检查它。 我正在我的项目中使用ActionBarSherLock。 我也检查了舱单。这里添加了飞溅活动。 Play Store的Logcat: 如果有任何错误,请检查属性快照->Android和Java构建路径。但我第一次犯这个错误是因为android应用程序的新版本。 我已将android-support-v4文件分配给另一个非当前项目的
像这样更改清单文件 首先添加活动标签,然后在注册接收者之后添加活动标签
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="test.mytestbuddy.IIM_CAT"
android:versionCode="7"
android:versionName="1.30" >
<uses-feature
android:name="android.hardware.telephony"
android:required="false" >
</uses-feature>
<permission
android:name="test.mytestbuddy.IIM_CAT.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="test.mytestbuddy.IIM_CAT.permission.C2D_MESSAGE" />
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/MTBOfflineAppTheme" >
<activity
android:name="test.mytestbuddy.IIM_CAT.Splash"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="test.mytestbuddy.IIM_CAT" />
</intent-filter>
</receiver>
<service android:name="test.mytestbuddy.IIM_CAT.GCMIntentService" />
这听起来很明显,但是。。。在test.mytestbuddy.IIM_CAT项目中是否有名为/src/Splash.java的文件?你能出示你的清单吗?@FrankN.Stein,查看更新的帖子。这不是你的完整清单。请把它寄出去complete@FrankN.Stein,选中nw…您的清单中缺少主活动的声明,请将其类别设置为默认类别。在启动屏幕活动中调用的。这可能是问题所在???因为我用的是第一个版本,但这次才有问题。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="test.mytestbuddy.IIM_CAT"
android:versionCode="7"
android:versionName="1.30" >
<uses-feature
android:name="android.hardware.telephony"
android:required="false" >
</uses-feature>
<permission
android:name="test.mytestbuddy.IIM_CAT.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="test.mytestbuddy.IIM_CAT.permission.C2D_MESSAGE" />
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/MTBOfflineAppTheme" >
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="test.mytestbuddy.IIM_CAT" />
</intent-filter>
</receiver>
<service android:name="test.mytestbuddy.IIM_CAT.GCMIntentService" />
<activity
android:name="test.mytestbuddy.IIM_CAT.Splash"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="test.mytestbuddy.IIM_CAT"
android:versionCode="7"
android:versionName="1.30" >
<uses-feature
android:name="android.hardware.telephony"
android:required="false" >
</uses-feature>
<permission
android:name="test.mytestbuddy.IIM_CAT.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="test.mytestbuddy.IIM_CAT.permission.C2D_MESSAGE" />
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/MTBOfflineAppTheme" >
<activity
android:name="test.mytestbuddy.IIM_CAT.Splash"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="test.mytestbuddy.IIM_CAT" />
</intent-filter>
</receiver>
<service android:name="test.mytestbuddy.IIM_CAT.GCMIntentService" />