2014-08-31 212 views
1

我真的很困惑。之後,我試圖改變從android.app我的包android.support.v4,我的應用程序崩潰,並投擲但下列情況除外:java.lang.RuntimeException:無法實例化活動ComponentInfo - Android

08-31 20:45:18.652: E/AndroidRuntime(1429): FATAL EXCEPTION: main 
08-31 20:45:18.652: E/AndroidRuntime(1429): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.k2evil.porschejournal/com.k2evil.porschejournal.FirstScreen}: java.lang.ClassNotFoundException: Didn't find class "com.k2evil.porschejournal.FirstScreen" on path: DexPathList[[zip file "/data/app/com.k2evil.porschejournal-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.k2evil.porschejournal-2, /system/lib]] 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.ActivityThread.access$600(ActivityThread.java:141) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.os.Handler.dispatchMessage(Handler.java:99) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.os.Looper.loop(Looper.java:137) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.ActivityThread.main(ActivityThread.java:5103) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at java.lang.reflect.Method.invokeNative(Native Method) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at java.lang.reflect.Method.invoke(Method.java:525) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at dalvik.system.NativeStart.main(Native Method) 
08-31 20:45:18.652: E/AndroidRuntime(1429): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.k2evil.porschejournal.FirstScreen" on path: DexPathList[[zip file "/data/app/com.k2evil.porschejournal-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.k2evil.porschejournal-2, /system/lib]] 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.Instrumentation.newActivity(Instrumentation.java:1061) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128) 
08-31 20:45:18.652: E/AndroidRuntime(1429):  ... 11 more 

,這是我的Android清單:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.k2evil.porschejournal" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="14" 
     android:targetSdkVersion="19" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <activity android:name="com.k2evil.porschejournal.FirstScreen" android:theme="@style/AppTheme"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN"/> 
       <category android:name="android.intent.category.LAUNCHER"/> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 

我試着乾淨的項目,並重命名應用程序包名稱。但它不起作用。

+2

在哪個軟件包是你的活動? – 2014-08-31 20:58:23

+0

如果你的意思是活動課,它在「com.k2evil.porschejournal」 – K2evil 2014-08-31 21:07:40

+0

它可能是一個副本:http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-升級至adt-22 ? – AZOM 2016-07-15 11:56:32

回答

0

這只是一個日食錯誤...關閉並重新打開日食:)

相關問題