将ADT和Android sdk工具更新到最新版本22后,未find类错误

此前它工作正常,我很快更新我的adt和android sdk工具到最新版本rev 22,我的应用程序停止工作下面是logcat输出

请帮忙

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 

Solutions Collecting From Web of "将ADT和Android sdk工具更新到最新版本22后,未find类错误"

对于使用支持库的项目,我会发生问题。

这个线程帮助我解决了ADT 22的ClassNotFoundException问题:

https://code.google.com/p/android/issues/detail?id=55304

这个想法是在Java Buils Path |上启用Android专用库 订单和出口

Nikolay的解决方法适用于我:对于所有项目(应用程序和库):

  1. 右键单击该项目,然后select“属性”
  2. 转到Java构buildpath顺序和导出。
  3. 勾选“Android私人图书馆”
  4. (可选)如有必要,清理所有项目

谢谢,尼古拉。