java.lang.NoClassDefFoundError: com.google.api.client.http.javanet.NetHttpTransport

1,223 views
Skip to first unread message

Robert Owens

unread,
Jun 16, 2013, 8:52:28 PM6/16/13
to google-api-...@googlegroups.com

I am using Eclipse Juno, developing on new iMac. I am build with Android 4.2.2 and attempt to run in AVD 4.2.2
Java version 1.6.0_45 64-Bit

I have "Add External Jars" for all jars in sample code for google-api-java-client.samples/calendar-android-sample. In addition I have added all the jars required for google-http-java-client attempting to insure that all dependencies are covered. I am still getting the runtime error listed below. I searched with Google for all Stack Overflow and other suggestions and think I have applied them and am still getting same error.

Any suggestions or instruction to resolve this are appreciated. Thank you very much!

06-17 00:26:28.042: E/AndroidRuntime(1438): FATAL EXCEPTION: main
06-17 00:26:28.042: E/AndroidRuntime(1438): java.lang.NoClassDefFoundError: com.google.api.client.http.javanet.NetHttpTransport
06-17 00:26:28.042: E/AndroidRuntime(1438):     at com.jumpapps.samples.calendar.android.CalendarSampleActivity.<init>(CalendarSampleActivity.java:107)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at java.lang.Class.newInstanceImpl(Native Method)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at java.lang.Class.newInstance(Class.java:1319)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.os.Handler.dispatchMessage(Handler.java:99)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.os.Looper.loop(Looper.java:137)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at android.app.ActivityThread.main(ActivityThread.java:5041)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at java.lang.reflect.Method.invokeNative(Native Method)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at java.lang.reflect.Method.invoke(Method.java:511)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-17 00:26:28.042: E/AndroidRuntime(1438):     at dalvik.system.NativeStart.main(Native Method)

Shubham Dadel

unread,
Oct 11, 2013, 10:32:16 PM10/11/13
to google-api-...@googlegroups.com
Hi Robert 

I also get that exception. Did you get a solution for that?

Thanks
Reply all
Reply to author
Forward
0 new messages