我在我的 logcat 中收到此错误消息:
10-19 21:00:08.672: E/AndroidRuntime(808): FATAL EXCEPTION: main
10-19 21:00:08.672: E/AndroidRuntime(808): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.minyanapp.activities/com.minyanapp.activities.SplashActivity}: java.lang.ClassNotFoundException: com.minyanapp.activities.SplashActivity
另外,在上述消息之前,我收到此错误:
10-19 22:07:13.003: E/Trace(1157): error opening trace file: No such file or directory (2)
这是我的 Manifest.xml 文件:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.minyanapp.activities.SplashActivity"
android:label="@string/title_activity_splash" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.minyanapp.activities.MainActivity"
android:label="@string/title_activity_main" >
</activity>
<activity
android:name="com.minyanapp.activities.Dummy"
android:label="@string/title_activity_dummy" >
</activity>
</application>
我试图删除 gen 和 bin 文件夹,重新启动 eclipse 和模拟器。没有任何帮助。
请帮忙!!!