local .aar include

147 views
Skip to first unread message

Chris

unread,
Aug 18, 2016, 10:16:45 AM8/18/16
to AIDE - Android Java IDE
Can someone please give me a detailed 'how-to' include a local .aar library in a project.

I was hoping it was as easy as dropping it in the /libs folder of my project, but no go.

Must I use build.gradle to use a .aar or is there another way?

Thank you,
Chris

Robert Van Gemert

unread,
Aug 21, 2016, 2:48:28 AM8/21/16
to AIDE - Android Java IDE
I had the same problem and could not resolve. I ended up extracting classes from the .aar file and renameing to jar. Google extracting jar from aar.

Chris

unread,
Sep 9, 2016, 12:26:43 AM9/9/16
to AIDE - Android Java IDE
I also ended up trying that but resources were not available to the jar that way.

Has anyone got a solution?

Why doesn't AIDE incorporate the use of local .aar files?

H van der Maas

unread,
Oct 25, 2016, 9:58:45 AM10/25/16
to AIDE - Android Java IDE
In the file browser in AIDE there is an item 'Add to project' in the main directory of every project.
When selected, a menu shows, one option is adding a local library.
When this option is selected, an instruction is showed explaining how to add a local library to your project.
Apparently, this can be done by long pressing on the library directory in the file browser.
It looks like this also adds resources to your project, not only the Java code, though I did not test this.


Op donderdag 18 augustus 2016 16:16:45 UTC+2 schreef Chris:
Reply all
Reply to author
Forward
0 new messages