Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Calendar API error: Class definition not found for Calendar class
    primarykey
    data
    text
    <p>Hello everybody, I am developing a app which will download all the events from google calendar to android device. I found this example: <a href="http://code.google.com/p/google-api-java-client/source/browse/calendar-android-sample/?repo=samples" rel="nofollow">http://code.google.com/p/google-api-java-client/source/browse/calendar-android-sample/?repo=samples</a></p> <p>I also downloaded the required library from <a href="http://code.google.com/p/google-api-java-client/wiki/APIs" rel="nofollow">http://code.google.com/p/google-api-java-client/wiki/APIs</a> Also from here : "http://code.google.com/p/google-api-java-client/downloads/list"</p> <p>But I am getting error as class definition not found. Please help me. My Logcat is as follows:</p> <pre><code>***10-10 12:52:10.129: E/dalvikvm(551): Could not find class 'com.google.api.services.calendar.Calendar$Builder', referenced from method com.examples.gcalsync.CalendarSample.onCreate*** 10-10 12:52:10.129: W/dalvikvm(551): VFY: unable to resolve new-instance 702 (Lcom/google/api/services/calendar/Calendar$Builder;) in Lcom/examples/gcalsync/CalendarSample; 10-10 12:52:10.129: D/dalvikvm(551): VFY: replacing opcode 0x22 at 0x0009 10-10 12:52:10.129: D/dalvikvm(551): VFY: dead code 0x000b-0060 in Lcom/examples/gcalsync/CalendarSample;.onCreate (Landroid/os/Bundle;)V 10-10 12:52:10.139: E/dalvikvm(551): Could not find class 'com.google.api.services.calendar.model.Calendar', referenced from method com.examples.gcalsync.CalendarSample.onOptionsItemSelected 10-10 12:52:10.139: W/dalvikvm(551): VFY: unable to resolve new-instance 710 (Lcom/google/api/services/calendar/model/Calendar;) in Lcom/examples/gcalsync/CalendarSample; 10-10 12:52:10.139: D/dalvikvm(551): VFY: replacing opcode 0x22 at 0x000b 10-10 12:52:10.139: D/dalvikvm(551): VFY: dead code 0x000d-0036 in Lcom/examples/gcalsync/CalendarSample;.onOptionsItemSelected (Landroid/view/MenuItem;)Z 10-10 12:52:10.179: D/AndroidRuntime(551): Shutting down VM 10-10 12:52:10.179: W/dalvikvm(551): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 10-10 12:52:10.199: E/AndroidRuntime(551): FATAL EXCEPTION: main ***10-10 12:52:10.199: E/AndroidRuntime(551): java.lang.NoClassDefFoundError: com.google.api.services.calendar.Calendar$Builder*** 10-10 12:52:10.199: E/AndroidRuntime(551): at com.examples.gcalsync.CalendarSample.onCreate(CalendarSample.java:127) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.os.Handler.dispatchMessage(Handler.java:99) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.os.Looper.loop(Looper.java:123) 10-10 12:52:10.199: E/AndroidRuntime(551): at android.app.ActivityThread.main(ActivityThread.java:4627) 10-10 12:52:10.199: E/AndroidRuntime(551): at java.lang.reflect.Method.invokeNative(Native Method) 10-10 12:52:10.199: E/AndroidRuntime(551): at java.lang.reflect.Method.invoke(Method.java:521) 10-10 12:52:10.199: E/AndroidRuntime(551): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 10-10 12:52:10.199: E/AndroidRuntime(551): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 10-10 12:52:10.199: E/AndroidRuntime(551): at dalvik.system.NativeStart.main(Native Method) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload