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