Help

28 views
Skip to first unread message

Amar

unread,
May 4, 2012, 7:10:38 PM5/4/12
to google-api-java-client
Hi can you guide me to get Calendar Sample running on my machine?
I have tried following steps to run the sample but no luck so far.
Looks like Maven dependencies are not getting resolved.
So far I have installed Eclipse, Mercurial and Maven plugins for
eclipse on Win 7 x64.
JAVA_HOME and ANDROID_HOME path correctly points to proper location.

1. Installed Mercurial Plugin.
2. Imported calendar-android-sample using Mercurial -> Clone Existing
Mercurial Repo.
3. URL for import used is https://code.google.com/p/google-api-java-client.samples
4. Already have API Key from my google account.
5. AVD Manager is setup per instructions from
http://samples.google-api-java-client.googlecode.com/hg/calendar-android-sample/instructions.html
6. Followed all the steps from instructions.
7. Everytime when emulator pops up I get following errors in logcat.
04-30 07:48:46.203: E/AndroidRuntime(985):
java.lang.NoClassDefFoundError:
com.google.api.client.extensions.android2.AndroidHttp
04-30 07:48:46.203: E/AndroidRuntime(985): at
com.google.api.services.samples.calendar.android.CalendarSample.<init>(CalendarSample.java:
93)
04-30 07:48:46.203: E/AndroidRuntime(985): at
java.lang.Class.newInstanceImpl(Native Method)
04-30 07:48:46.203: E/AndroidRuntime(985): at
java.lang.Class.newInstance(Class.java:1429)
8. On emulator I get Google Calendar Sample has stopped unexpectedly.
To my guess it looks like I am missing build path or dependencies.
Coming from .Net experience, I am really noob in operating eclipse
and
resolving dependencies. It will be helpful if someone can point me in
correct direction.

Thanks -amar

Yaniv Inbar (יניב ענבר)

unread,
Jun 15, 2012, 10:39:31 AM6/15/12
to google-api-...@googlegroups.com
Please try updating the calendar-android-sample from Mercurial.  We've dropped the need for Maven since it does not work well with Eclipse.

Let me know if you run into any problems with it.

Yaniv Inbar
Senior Software Engineer
Google Inc.


On Thu, Jun 14, 2012 at 2:10 AM, Feroj Mahmud <fer...@gmail.com> wrote:
I am also having this problem. please help me..
Reply all
Reply to author
Forward
0 new messages