androidannotations icon indicating copy to clipboard operation
androidannotations copied to clipboard

java.lang.NoClassDefFoundError: com.googlecode.androidannotations.api.SdkVersionHelper

Open blonboll opened this issue 14 years ago • 4 comments

Hi,

I have this error, when i am pressing Back or ContextMenu button. Compilation is OK...no warrings/errors in code. I am using Eclipse 3.7.2 (no Maven). I tried everything (clean project, new project, reinstall eclipse, other PC,other OS, androidAnotations 2.5., google, etc.)

04-10 20:43:49.878: E/AndroidRuntime(487): java.lang.NoClassDefFoundError: com.googlecode.androidannotations.api.SdkVersionHelper at cz.babywebik.MainActivity.onKeyDown(MainActivity.java:130) at android.view.KeyEvent.dispatch(KeyEvent.java:1037) at android.app.Activity.dispatchKeyEvent(Activity.java:2068) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1643) at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2471) at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2441) at android.view.ViewRoot.handleMessage(ViewRoot.java:1735) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method)

Some solution ???

blonboll avatar Apr 11 '12 17:04 blonboll

Hi @blonboll,

I see that you closed the issue, does it means that your problem is solved?

pyricau avatar Apr 12 '12 09:04 pyricau

jj it was my bad, in project properties -> Java Build Path -> Order and Export it wasn't checked androidannotations-xxx-api.jar

blonboll avatar Apr 12 '12 09:04 blonboll

Hum. Same as #157. We didn't need to do anything like that before, that's strange.

pyricau avatar Apr 12 '12 11:04 pyricau

I added a Troubleshooting section in the eclipse config wiki page: https://github.com/excilys/androidannotations/wiki/Eclipse-Project-Configuration

pyricau avatar Apr 12 '12 13:04 pyricau