I've observed the same behavior. When sources are correctly attached, this
is reflected in .idea/libraries/some_lib.xml by having a new <SOURCES> tag
added. Is there anything we can change in our gradle files to have this tag
added automatically after syncing?
On Tuesday, February 10, 2015 at 6:04:15 PM UTC-8, Camilo Arango Moreno
wrote:
>
> Hello,
>
> I have a module that depends on a jar. I define the dependency on my
> build.gradle like this:
>
> apply plugin: 'com.android.library'
>
> dependencies {
> compile fileTree(dir: 'libs', include: 'some_lib.jar')
> }
>
> I would like to attach the sources of some_lib.jar, but I don't know how
> to do it from gradle.
>
> When I open a class from some_libs.jar, Android Studio shows the
> decompiled code, and a message at the top saying "Sources not found", with
> the option "Attach Sources..." . Unfortunately, clicking on the Attach
> sources works for a little bit, but it gets overridden whenever I sync the
> project with Gradle.
>
> Any ideas?
>
> Thanks,
>
> Camilo.
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.