我运行我的应用程序完全没问题,直到每次我尝试启动它时它都会给我这个错误消息:
“不幸的是,[app_name] 已停止”无论是在模拟器上还是在调试模式下的设备上,我都会遇到同样的崩溃
manifest.xml:
<activity android:name="com.***.android.activities.SplashScreenActivity" android:configChanges="orientation|keyboard|screenSize" android:label="@string/app_name" android:noHistory="true" 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>
这是LogCat跟踪:
05-28 14:15:36.127: D/overlay(158): Unset pipe=VG0 dpy=0; Unset pipe=VG1 dpy=0; Unset pipe=RGB1 dpy=0;
05-28 14:15:36.127: E/AndroidRuntime(26038): FATAL EXCEPTION: main
05-28 14:15:36.127: E/AndroidRuntime(26038): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.***.jerusalem/com.***.android.activities.SplashScreenActivity}: java.lang.ClassNotFoundException: Didn't find class "com.***.android.activities.SplashScreenActivity" on path: /data/app/com.***.jerusalem-1.apk
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.os.Handler.dispatchMessage(Handler.java:99)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.os.Looper.loop(Looper.java:137)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-28 14:15:36.127: E/AndroidRuntime(26038): at java.lang.reflect.Method.invokeNative(Native Method)
05-28 14:15:36.127: E/AndroidRuntime(26038): at java.lang.reflect.Method.invoke(Method.java:511)
05-28 14:15:36.127: E/AndroidRuntime(26038): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-28 14:15:36.127: E/AndroidRuntime(26038): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-28 14:15:36.127: E/AndroidRuntime(26038): at dalvik.system.NativeStart.main(Native Method)
05-28 14:15:36.127: E/AndroidRuntime(26038): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.***.android.activities.SplashScreenActivity" on path: /data/app/com.***.jerusalem-1.apk
05-28 14:15:36.127: E/AndroidRuntime(26038): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
05-28 14:15:36.127: E/AndroidRuntime(26038): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-28 14:15:36.127: E/AndroidRuntime(26038): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-28 14:15:36.127: E/AndroidRuntime(26038): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
05-28 14:15:36.127: E/AndroidRuntime(26038): ... 11 more
05-28 14:15:36.127: W/ActivityManager(525): Force finishing activity com.***.jerusalem/com.***.android.activities.SplashScreenActivity
我检查了构建路径,重新安装了所有组件,甚至将项目导出到另一台计算机,在其中一切正常,我唯一确定的是它是本地的,但我无法指出。