Closed trevjonez closed 8 years ago
@trevjonez how to enable the built in support of AS 1.4
It is enabled by default. https://code.google.com/p/android/issues/detail?id=59220 That issue is marked as resolved.
When i depend on AAR files like this it works fine
compile 'the.group.name:module:1.0.0'
I also just tested the following and seems to work fine also
compile 'the.group.name:module:1.0.0@aar'
All of this depends on the sources being available in the first place though.
In my case the maven files look like this.
module-1.0.0-sources.jar
module-1.0.0.aar
I am also running my build on the latest 1.4.0beta6 gradle plugin. Maybe that is part of what enables the behavior?
You should be able to find an xml file for each dependency under project_dir/.idea/libraries/
they look like this.
<component name="libraryTable">
<library name="assertj-core-1.6.1">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.assertj/assertj-core/1.6.1/5db13d0ae30dca5157f0dea60f78640cf039cafe/assertj-core-1.6.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.assertj/assertj-core/1.6.1/631f89e7050cf8ac2ba25d68f0434b80731bf2f2/assertj-core-1.6.1-sources.jar!/" />
</SOURCES>
</library>
</component>
@trevjonez thanks. I got this feature work when upgrade android gradle plugin to 1.4.0-beta6
Android Studio 1.4 has this support built in. As of today it is in release candidate status, thus I am recommending official deprecation of this plugin.