java.lang.NoClassDefFoundError on Android with GoogleAccountCredential.newChooseAccountIntent()

前端 未结 2 1932
谎友^
谎友^ 2021-01-14 05:02

I am developing for Android 4+ with Eclipse Juno ADT bundle + Google Plugin for Eclipse. I need to programmatically log into a google account to use the Google Calendar API.

2条回答
  •  爱一瞬间的悲伤
    2021-01-14 05:50

    OK, I've found out what I was missing.

    1. Ensure you have downloaded the Android SDK Services -> Extras -> Google Play services

    2. Follow the instructions provided by the following link to add the google-play-services-lib library to your project:

    http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

    Best Regards

提交回复
热议问题