此前它工作正常,儘快我更新我的adt和android sdk工具到最新版本rev 22,我的應用停止工作 下面是logcat輸出更新ADT和Android sdk工具到最新的版本22之後的類未找到錯誤
請幫我發生
05-16 16:36:01.922: E/AndroidRuntime(12717): FATAL EXCEPTION: main
05-16 16:36:01.922: E/AndroidRuntime(12717): java.lang.ExceptionInInitializerError
05-16 16:36:01.922: E/AndroidRuntime(12717): at com.adroit.photoflick.TagsGridActivity.onStart(TagsGridActivity.java:303)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1163)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.Activity.performStart(Activity.java:5018)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.ActivityThread.access$600(ActivityThread.java:130)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.os.Looper.loop(Looper.java:137)
05-16 16:36:01.922: E/AndroidRuntime(12717): at android.app.ActivityThread.main(ActivityThread.java:4745)
05-16 16:36:01.922: E/AndroidRuntime(12717): at java.lang.reflect.Method.invokeNative(Native Method)
05-16 16:36:01.922: E/AndroidRuntime(12717): at java.lang.reflect.Method.invoke(Method.java:511)
05-16 16:36:01.922: E/AndroidRuntime(12717): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
05-16 16:36:01.922: E/AndroidRuntime(12717): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-16 16:36:01.922: E/AndroidRuntime(12717): at dalvik.system.NativeStart.main(Native Method)
05-16 16:36:01.922: E/AndroidRuntime(12717): Caused by: java.lang.NoClassDefFoundError: com.dropbox.client2.session.Session$AccessType
05-16 16:36:01.922: E/AndroidRuntime(12717): at com.adroit.lazyadapter.ImageLoader.<clinit>(ImageLoader.java:96)
05-16 16:36:01.922: E/AndroidRuntime(12717): ... 15 more
我有同樣的問題,請參閱我的答案在這裏: http://stackoverflow.com/a/16583188/447197 – tafty
thnks @ tafty,但我無法理解這背後的原因。 thnk反正:) –