0
나는이 응용 프로그램에 대한 새로운 오전 그리고 내가 배울 자습서 다음입니다. 나는 날씨 애플 리케이션을 테스트하기 위해 https://github.com/survivingwithandroid/Surviving-with-android/tree/master/WeatherForecastApp을 따라 갔지만 나는 힘을 가까이에서 받고있다. 나는 또한이 오류에 대해 고글을 쓰지만 여전히 해결할 수는 없다. 누군가이 오류에 직면하면 도움을주십시오.견본 날씨 응용 프로그램이 강제로 닫기
로그 캣 오류가
E/AndroidRuntime(5988): FATAL EXCEPTION: main
E/AndroidRuntime(5988): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.survivingwithandroid.weatherapp/com.survivingwithandroid.weatherapp.MainActivity}: java.lang.ClassNotFoundException: com.survivingwithandroid.weatherapp.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.survivingwithandroid.weatherapp-2.apk]
E/AndroidRuntime(5988): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)
E/AndroidRuntime(5988): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
E/AndroidRuntime(5988): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(5988): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
E/AndroidRuntime(5988): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(5988): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(5988): at android.app.ActivityThread.main(ActivityThread.java:3687)
E/AndroidRuntime(5988): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(5988): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(5988): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
E/AndroidRuntime(5988): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
E/AndroidRuntime(5988): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(5988): Caused by: java.lang.ClassNotFoundException: com.survivingwithandroid.weatherapp.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.survivingwithandroid.weatherapp-2.apk]
E/AndroidRuntime(5988): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
E/AndroidRuntime(5988): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
E/AndroidRuntime(5988): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime(5988): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(5988): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
E/AndroidRuntime(5988): ... 11 more
check menifest 활동 정의 여부. –
매니페스트 파일을 게시 할 수 있습니까? –
내 생각 엔 manifest가 gh https://github.com/survivingwithandroid/Surviving-with-android/tree/master/WeatherForecastApp – Apostolos