No source code / javadoc in Android Studio for dependency libraries (es. Support)

5,161 views
Skip to first unread message

Daniele Segato

unread,
Aug 9, 2013, 6:39:39 AM8/9/13
to adt...@googlegroups.com
Hi,

projects in Android Studio that uses AAR or remote artifacts seems not to include javadoc / source code for the remote libraries.

This annoy me when I use the support library or google services.

On Eclipse I used to manually include the javadoc / sources using the .properties file, on Android Studio I don't know how to do it.

It's been a while I wanted to ask this, is there something I have to do in Android Studio / gradle to see javadocs / sources of the library I depends on?

Regards,
Daniele Segato

Daniele Segato

unread,
Aug 9, 2013, 6:43:32 AM8/9/13
to adt...@googlegroups.com
I missed this:

is there some news about it?
some workaround inside AndroidStudio?

Thanks,
Daniele Segato

Xavier Ducrohet

unread,
Aug 13, 2013, 12:55:21 PM8/13/13
to adt...@googlegroups.com
There's no workaround at the moment.


--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Daniele Segato

unread,
Sep 11, 2013, 10:50:51 AM9/11/13
to adt...@googlegroups.com
Xavier, there's actually a work-around.

Inside Android Studio I can go to:
External Libraries -> support-v4 -> [F4] (or [right click] + Open Library Setting)

Then attach files or directory from the plus sign: navigate to the m2repository folder in your SDK (extras) and add the sources and javadoc jars

Hitting [CTRL]+Q will then open the javadoc for support classes

Regards,
Daniele

Nicola Dorigatti

unread,
Oct 30, 2013, 5:07:14 AM10/30/13
to adt...@googlegroups.com
Hi, I'm searching for a workaround too, but for external library.
I have Crouton library from github that has on maven repo also the javadoc and sources jar, so it's simple to add them.
But then I'm using CardsLib from gabrielemariotti (in github too), but this does not provide jdocs or sources so I'm checking for a way of showing javadoc while coding.
Do we have news on gradle part or someone that knows how to do it?

Thank you

Nicola Dorigatti

unread,
Jul 8, 2014, 4:33:41 PM7/8/14
to adt...@googlegroups.com
Is there something new on this? I can't make the support-v4 trick from Daniele for the play-services dependency..


Il giorno mercoledì 11 settembre 2013 16:50:51 UTC+2, Daniele Segato ha scritto:

Bhanushali Ashwin

unread,
Aug 1, 2014, 2:40:45 AM8/1/14
to adt...@googlegroups.com
Your trick
External Libraries -> support-v4 -> [F4] (or [right click] + Open Library Setting)
Not working for me.Is there any workaround for this problem?
I am using android studio 0.8.3

Artem Zinnatullin

unread,
Sep 2, 2014, 10:02:56 PM9/2/14
to adt...@googlegroups.com
Here is workaround for those, who don't actually need to build his library as "aar" -> http://stackoverflow.com/questions/19307341/android-library-gradle-release-jar and can release it as "jar"

вторник, 13 августа 2013 г., 20:55:21 UTC+4 пользователь Xavier Ducrohet написал:

Roy Liao

unread,
Oct 24, 2014, 2:12:22 AM10/24/14
to adt...@googlegroups.com
In WIndows, try ctrl+right click on any object/method from support-v4, and you will see "Attach Source" on top bar. Click and select the source code path, then all good.

Bhanushali Ashwin於 2014年8月1日星期五UTC+10下午4時40分45秒寫道:

Daniele Segato

unread,
Jun 4, 2015, 9:58:05 AM6/4/15
to adt...@googlegroups.com
Sorry to wake this up after so long time.

Is there any news about dependencies sources / javadoc?

I currently use this gradle plugin in my projects: https://github.com/xujiaao/AARLinkSources
it has this drawbacks:
- need to manually setup for every dependency
- only works if there are sources available, doesn't in case of Javadoc only

for example the Google Play Services are still without javadoc in Android Studio.

Hope to hear from you Xavier :)

regards,
Daniele
Reply all
Reply to author
Forward
0 new messages