我剛剛下載的應用程序iosched,對其進行調查程序如何處理手機和平板電腦的佈局之間進行切換:的RuntimeException - ClassNotFoundException的
我使用例如:It並有一個錯誤: 的Android需要編譯器遵從水平5.0或6.0。發現'1.6'
由於this問題和Ted Hopp的回答,我很容易修復它。
目前該項目已編譯,但在一開始就崩潰了:
07-11 02:23:37.266: E/AndroidRuntime(1881): FATAL EXCEPTION: main 07-11 02:23:37.266: E/AndroidRuntime(1881): java.lang.RuntimeException: Unable to get provider com.google.android.apps.iosched.provider.ScheduleProvider: java.lang.ClassNotFoundException: com.google.android.apps.iosched.provider.ScheduleProvider in loader dalvik.system.PathClassLoader[/data/app/com.google.android.apps.iosched-1.apk] 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread.installProvider(ActivityThread.java:3865) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3617) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3573) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread.access$2200(ActivityThread.java:123) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1031) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.os.Handler.dispatchMessage(Handler.java:99) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.os.Looper.loop(Looper.java:126) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread.main(ActivityThread.java:3997) 07-11 02:23:37.266: E/AndroidRuntime(1881): at java.lang.reflect.Method.invokeNative(Native Method) 07-11 02:23:37.266: E/AndroidRuntime(1881): at java.lang.reflect.Method.invoke(Method.java:491) 07-11 02:23:37.266: E/AndroidRuntime(1881): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 07-11 02:23:37.266: E/AndroidRuntime(1881): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 07-11 02:23:37.266: E/AndroidRuntime(1881): at dalvik.system.NativeStart.main(Native Method) 07-11 02:23:37.266: E/AndroidRuntime(1881): Caused by: java.lang.ClassNotFoundException: com.google.android.apps.iosched.provider.ScheduleProvider in loader dalvik.system.PathClassLoader[/data/app/com.google.android.apps.iosched-1.apk] 07-11 02:23:37.266: E/AndroidRuntime(1881): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251) 07-11 02:23:37.266: E/AndroidRuntime(1881): at java.lang.ClassLoader.loadClass(ClassLoader.java:548) 07-11 02:23:37.266: E/AndroidRuntime(1881): at java.lang.ClassLoader.loadClass(ClassLoader.java:508) 07-11 02:23:37.266: E/AndroidRuntime(1881): at android.app.ActivityThread.installProvider(ActivityThread.java:3850) 07-11 02:23:37.266: E/AndroidRuntime(1881): ... 12 more
我可以看到,有項目該類com.google.android.apps.iosched.provider.ScheduleProvider。你能幫我解決這個問題嗎?