2014-06-09 2 views
-3

LogCat에서 다음 코드 오류가 발생합니다. 수정 사항이 있습니까? info.androidhive.androidsplashscreentimer.Splashscreen이란 무엇입니까? 주 활동 전에 시작 화면을 표시하고 싶었습니다. 누구든지 로그 고양이가 생성 한 문제점을 알아 내기 위해 어떤 오류 메시지를 보는지 설명 할 수 있습니까?치명적인 예외가있는 시작시 Android 앱이 다운 됨

06-09 11:43:18.800: E/AndroidRuntime(824): FATAL EXCEPTION: main 
06-09 11:43:18.800: E/AndroidRuntime(824): Process: com.example.apocalypse, PID: 824 
06-09 11:43:18.800: E/AndroidRuntime(824): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.apocalypse/info.androidhive.androidsplashscreentimer.SplashScreen}: java.lang.ClassNotFoundException: Didn't find class "info.androidhive.androidsplashscreentimer.SplashScreen" on path: DexPathList[[zip file "/data/app/com.example.apocalypse-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.apocalypse-2, /system/lib]] 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.ActivityThread.access$800(ActivityThread.java:135) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.os.Handler.dispatchMessage(Handler.java:102) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.os.Looper.loop(Looper.java:136) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.ActivityThread.main(ActivityThread.java:5017) 
06-09 11:43:18.800: E/AndroidRuntime(824): at java.lang.reflect.Method.invokeNative(Native Method) 
06-09 11:43:18.800: E/AndroidRuntime(824): at java.lang.reflect.Method.invoke(Method.java:515) 
06-09 11:43:18.800: E/AndroidRuntime(824): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
06-09 11:43:18.800: E/AndroidRuntime(824): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
06-09 11:43:18.800: E/AndroidRuntime(824): at dalvik.system.NativeStart.main(Native Method) 
06-09 11:43:18.800: E/AndroidRuntime(824): Caused by: java.lang.ClassNotFoundException: Didn't find class "info.androidhive.androidsplashscreentimer.SplashScreen" on path: DexPathList[[zip file "/data/app/com.example.apocalypse-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.apocalypse-2, /system/lib]] 
06-09 11:43:18.800: E/AndroidRuntime(824): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 
06-09 11:43:18.800: E/AndroidRuntime(824): at java.lang.ClassLoader.loadClass(ClassLoader.java:497) 
06-09 11:43:18.800: E/AndroidRuntime(824): at java.lang.ClassLoader.loadClass(ClassLoader.java:457) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.Instrumentation.newActivity(Instrumentation.java:1061) 
06-09 11:43:18.800: E/AndroidRuntime(824): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112) 
06-09 11:43:18.800: E/AndroidRuntime(824): ... 11 more 
06-09 11:43:24.160: I/Process(824): Sending signal. PID: 824 SIG: 9 
06-09 11:43:45.990: D/AndroidRuntime(929): Shutting down VM 
06-09 11:43:45.990: W/dalvikvm(929): threadid=1: thread exiting with uncaught exception (group=0xb2a79ba8) 
06-09 11:43:46.000: E/AndroidRuntime(929): FATAL EXCEPTION: main 
06-09 11:43:46.000: E/AndroidRuntime(929): Process: com.example.apocalypse, PID: 929 
06-09 11:43:46.000: E/AndroidRuntime(929): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.apocalypse/info.androidhive.androidsplashscreentimer.SplashScreen}: java.lang.ClassNotFoundException: Didn't find class "info.androidhive.androidsplashscreentimer.SplashScreen" on path: DexPathList[[zip file "/data/app/com.example.apocalypse-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.apocalypse-2, /system/lib]] 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.ActivityThread.access$800(ActivityThread.java:135) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.os.Handler.dispatchMessage(Handler.java:102) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.os.Looper.loop(Looper.java:136) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.ActivityThread.main(ActivityThread.java:5017) 
06-09 11:43:46.000: E/AndroidRuntime(929): at java.lang.reflect.Method.invokeNative(Native Method) 
06-09 11:43:46.000: E/AndroidRuntime(929): at java.lang.reflect.Method.invoke(Method.java:515) 
06-09 11:43:46.000: E/AndroidRuntime(929): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
06-09 11:43:46.000: E/AndroidRuntime(929): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
06-09 11:43:46.000: E/AndroidRuntime(929): at dalvik.system.NativeStart.main(Native Method) 
06-09 11:43:46.000: E/AndroidRuntime(929): Caused by: java.lang.ClassNotFoundException: Didn't find class "info.androidhive.androidsplashscreentimer.SplashScreen" on path: DexPathList[[zip file "/data/app/com.example.apocalypse-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.apocalypse-2, /system/lib]] 
06-09 11:43:46.000: E/AndroidRuntime(929): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 
06-09 11:43:46.000: E/AndroidRuntime(929): at java.lang.ClassLoader.loadClass(ClassLoader.java:497) 
06-09 11:43:46.000: E/AndroidRuntime(929): at java.lang.ClassLoader.loadClass(ClassLoader.java:457) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.Instrumentation.newActivity(Instrumentation.java:1061) 
06-09 11:43:46.000: E/AndroidRuntime(929): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112) 
06-09 11:43:46.000: E/AndroidRuntime(929): ... 11 more 

내 매니페스트

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.apocalypse" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="17" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <!-- Splash screen --> 
    <activity 
     android:name="info.androidhive.androidsplashscreentimer.SplashScreen" 
     android:label="@string/app_name" 
     android:screenOrientation="portrait" 
     android:theme="@android:style/Theme.Black.NoTitleBar" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

    <!-- Main activity --> 
    <activity 
     android:name="info.androidhive.androidsplashscreentimer.MainActivity" 
     android:label="@string/app_name" > 
    </activity> 
</application> 

+0

매니 페스트에 문제가있는 것 같습니다. 게시 할 수 있습니까? – jcw

+0

게시했습니다 – user3595963

+0

귀하의 패키지가 일치하지 않습니다. 당신은'com.example.apocalypse'을 가지고 있고'info.androidhive.androidsplashscreentimer' 활동을 활동 중입니다. – elbaulp

답변

2

info.androidhive.androidsplashscreentimer.SplashScreen을 당신은 당신의 활동 (info.androidhive.androidsplashscreentimer)에서 일치하지 않습니다 com.example.apocalypse 패키지, 하나 당신이 당신의 활동 요소 name=".SplashScreen" 또는 name="com.example.apocalypse.SplashScreen"하는 듯했지만되지 않습니다 . 사용해보기 :

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.apocalypse" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="17" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <!-- Splash screen --> 
    <activity 
     android:name=".SplashScreen" 
     android:label="@string/app_name" 
     android:screenOrientation="portrait" 
     android:theme="@android:style/Theme.Black.NoTitleBar" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

    <!-- Main activity --> 
    <activity 
     android:name=".MainActivity" 
     android:label="@string/app_name" > 
    </activity> 
</application> 
관련 문제