How to attach source to Google Drive API or `Android Private Library` in Eclipse

15,094

Found a way...
I moved the "Drive API" library above "Android Private Libraries" in the "Order and Export" dialog of the Build Configuration window.
Hope it helps someone...

Share:
15,094
Amir Uval
Author by

Amir Uval

Android Developer @Facebook. Before that, I was developing Android Apps and also teaching Android in college. Used to work for Sun Microsystems RIP (Now Oracle) on J2ME technology (The ancestor of Android).

Updated on June 07, 2022

Comments

  • Amir Uval
    Amir Uval almost 2 years

    I've installed the Drive API using the Add Google APIs... menu option.
    When manually drilling into any one of the jars under Drive API, the source code opens ok.

    But manually drilling into the same jar under Android Private Libraries results in a "Source not found".

    project view

    So when using open Declaration (F3) for example, I get the "Source not found" page.

    The build system links all the jars using a library called Android Private Libraries.

    I could not find a way to attach source or documentation to the Drive API.

    attach source dialog

    All the options to attach anything are disabled.

    Any advice?

  • Aiden Fry
    Aiden Fry almost 11 years
    Thanks this sorted it for me