Help needed to run google api samples.
Method tried so far,
Platform: Windows 7 X64
Environment: Eclipse
1. Installed Mercurial Plugin.
2. Imported tasks-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/tasks-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 06:47:36.523: E/AndroidRuntime(819): FATAL EXCEPTION: main
04-30 06:47:36.523: E/AndroidRuntime(819):
java.lang.NoClassDefFoundError:
com.google.api.client.extensions.android2.AndroidHttp
04-30 06:47:36.523: E/AndroidRuntime(819): at
com.google.api.services.samples.tasks.android.TasksSample.<init>(TasksSample.java:
77)
04-30 06:47:36.523: E/AndroidRuntime(819): at
java.lang.Class.newInstanceImpl(Native Method)
8. On emulator I get Google Tasks 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