

I keep on getting cannot find symbol during compile which tells me that the classes.jar from aar package isn't getting included in the classpath.ĭoes anyone know of the syntax to manually include an aar package as a file?Ĭlasspath ':gradle:0.4'Ĭompile files('libs/actionbarsherlock.aar')ĮDIT: So the answer is that it's not currently supported, here's the issue if you want to track it.ĮDIT: Currently as this is still not supported directly the best alternative seems to be the proposed solution from Also simpler by using the syntax proposed by just succeeded!Ĭopy the mylib-0.1.aar file into the libs/ folderĪdd these lines to the bottom of build. I've attempted to use the compile configuration but this doesn't seem to work. If I include the whole ActionBarSherlock library as an android-library module to my main project using compile project (':actionbarsherlock') I'm able to build successfully without any problems.īut my problem is that I want to provide that dependency as a aar file package MANUALLY just if I would a JAR then I can't seem to figure out how to properly include it into my project. What I'm trying to do is actually use this aar to build my final APK. I've compiled my own aar package of ActionBarSherlock which I've called 'actionbarsherlock.aar'. Alternatively you can unpack the Gradle distribution ZIP into C:\Gradle using an archiver tool of your choice.

Drag the content folder gradle-8.0.2 to your newly created C:\Gradle folder. Double-click the ZIP archive to expose the content.

I've been experimenting with the new android build system and I've run into a small issue. Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded.
