How to attach javadoc to Google Play Services in Android Studio?-ThrowExceptions

Exception or error:

Reference documentation for can be found at <android-sdk>/extras/google/google_play_services/docs/reference but I can’t figure out how to attach it in Android Studio.

Android Studio 0.8.4, Gradle Android Plugin 0.12.2

How to solve:

In Android Studio 1.5.1 this is how I’ve managed to add the javadocs:

  1. Right click in Project panel > External libraries > lib-name
  2. Click Library properties
    Lib props
  3. Click specify documentation URL
  4. And specify an URL. For my machine it was file:///opt/android-sdk/extras/google/google_play_services/docs/reference
    Add doc url
  5. The result was:
    added jdoc
  6. And after a project sync I could browse the javadoc of the google play services
    google play services maps javadoc


A new version of the Google Play Services library was released recently: 5.2.08. If you are using an older version of the library, Android Studio will automatically offer to upgrade it to the new version. However, due to a bug, it drops the leading zero in “08”, which means it replaces the dependency with “5.2.8” instead of “5.2.08” which does not work. To fix this, edit the dependency to read “5.2.08” instead of “5.2.8”.

I got this information from this link.

Hope this helps 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *