我和HoloEverywhere有一个项目,上周工作正常。在Google I / O之后,有一个新版本的ADT,SDK和支持库v4。我继续更新这些元素。此外,从GitHub主要来源更新了HoloEverywhere。
既然如此,我的应用程序不起作用,每次运行(或调试)项目时,它总是在启动时崩溃,这就是错误:
java.lang.NoClassDefFoundError:org.holoeverywhere.app.Activity 在org.holoeverywhere.addon.AddonSherlock。(AddonSherlock.java:236)
这是完整的堆栈:
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: org.holoeverywhere.app.Activity
at org.holoeverywhere.addon.AddonSherlock.<init>(AddonSherlock.java:236)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1409)
at org.holoeverywhere.addon.IAddon.addon(IAddon.java:30)
at org.holoeverywhere.addon.IAddon.obtain(IAddon.java:58)
at org.holoeverywhere.addon.IAddonBasicAttacher.addon(IAddonBasicAttacher.java:49)
at org.holoeverywhere.addon.IAddonBasicAttacher.addon(IAddonBasicAttacher.java:65)
at org.holoeverywhere.app.Application.addon(Application.java:67)
at org.holoeverywhere.app.Application.onCreate(Application.java:127)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3272)
at android.app.ActivityThread.access$2200(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
这是我的环境配置:
答案 0 :(得分:0)
要解决这种情况,我尝试了以下链接中的答案:java.lang.ClassNotFoundException after changing nothing in the project but upgrading eclipse android sdk
感谢@Raghunandan评论!