-1
我有一個使用ZXing庫的應用程序。 java編譯器被設置爲某個級別,我不記得是什麼,對不起。我試圖使用switch語句和eclipse抱怨編譯器級別不正確。我點擊了快速修復,現在Eclipse發出以下錯誤。android運行時錯誤無法啓動應用程序。 classnotfoundexception
11-21 16:38:56.090: E/AndroidRuntime(20001): FATAL EXCEPTION: main
11-21 16:38:56.090: E/AndroidRuntime(20001): java.lang.RuntimeException: Unable to instantiate application com.carefreegroup.NfcScannerApplication: java.lang.ClassNotFoundException: com.carefreegroup.NfcScannerApplication
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.LoadedApk.makeApplication(LoadedApk.java:529)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4532)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.ActivityThread.access$1300(ActivityThread.java:139)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.os.Handler.dispatchMessage(Handler.java:99)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.os.Looper.loop(Looper.java:156)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.ActivityThread.main(ActivityThread.java:5045)
11-21 16:38:56.090: E/AndroidRuntime(20001): at java.lang.reflect.Method.invokeNative(Native Method)
11-21 16:38:56.090: E/AndroidRuntime(20001): at java.lang.reflect.Method.invoke(Method.java:511)
11-21 16:38:56.090: E/AndroidRuntime(20001): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
11-21 16:38:56.090: E/AndroidRuntime(20001): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
11-21 16:38:56.090: E/AndroidRuntime(20001): at dalvik.system.NativeStart.main(Native Method)
11-21 16:38:56.090: E/AndroidRuntime(20001): Caused by: java.lang.ClassNotFoundException: com.carefreegroup.NfcScannerApplication
11-21 16:38:56.090: E/AndroidRuntime(20001): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
11-21 16:38:56.090: E/AndroidRuntime(20001): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
11-21 16:38:56.090: E/AndroidRuntime(20001): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.Instrumentation.newApplication(Instrumentation.java:948)
11-21 16:38:56.090: E/AndroidRuntime(20001): at android.app.LoadedApk.makeApplication(LoadedApk.java:520)
11-21 16:38:56.090: E/AndroidRuntime(20001): ... 11 more
我機應用被稱爲nfcscannerappliction,我似乎得到的ClassNotFoundException。任何想法如何我可以再次編譯我的應用程序?
我的第一個建議是檢查清單,並確保它仍然是正確的在那裏和拼寫正確只需在「修復」過程中萬一有改變。 – codeMagic
@codeMagic我已經整理了它,謝謝你的回覆。 – turtleboy