NoClassDefFoundError When Debug Android Engine Connected Android Project

Go To StackoverFlow.com

1

I’m struggling on a problem on my new Android C2DM test project: Android Engine Connected Android Project. The problem is:

At LogCat: 04-04 19:35:09.414: E/AndroidRuntime(320): java.lang.NoClassDefFoundError: com.google.android.c2dm.C2DMessaging

Location at debug window: InvocationTargetException.class InvocationTargetException.(Thrownable) Line 50

Exception: NoClassDefFoundError

  1. Does any one have any idea what file (and where) I’m missing and how to fix?
  2. Know where/how to get Google API source for debugging?

Really appreciate your inputs.

2012-04-05 18:20
by GG Jeng
What is the target SDK of your app? C2DM is available for API 8 and above (Android v2.2) - Squonk 2012-04-05 18:30
Have you upgraded to ADT 17 - TacB0sS 2012-04-05 19:12
I did try Google API 8 and 10; and I use ADT 17. Help-> Check Update shows few items for me to update. I'm currently updating now and will try again to see what happens. Thank you MisterSquonk and TacB0sS! Any one got the problem - GG Jeng 2012-04-05 22:30


4

The problem is that the latest ADT doesn't allow libraries (.jar) in any other folder except "libs" so please rename the folder from "lib" to "libs" and then add the existing three libraries (.jar) again.

2012-04-12 11:14
by wenjiun
Thank you so much Wen. Good hints and I will find time and go back to test - GG Jeng 2012-04-19 01:45
Ads