Integrating .aar files?

I’m trying to write an android extension for Unity Ads.
Their integration guide specifies the inclusion of an .aar file. (https://unityads.unity3d.com/help/Documentation%20for%20Publishers/Integration-Guide-for-Android)
This appears to be a zipped .jar file.

Some resources have suggested just renaming .jar to .aar. I’ve also heard that you can unzip the .aar and extract just the relevant .jar file.

I can get my project to compile but it exhibits some strange crashes, so I can’t tell if there is an error with the basic integration, or the .aar file itself. I couldn’t find any official word on .aar in openfl.

For the record there IS an existing extension for Unity Ads in android, but the extension is outdated and doesn’t make use of the newest unity sdk required. I also couldn’t find any .aar files in the source. I’ll be contacting the author soon for help as well. (https://github.com/ipsilondev/openfl-unityads)

Hi :smile:

It appears that Gradle supports AAR files, though we use the older (more mature?) ANT build process for Android, which can use AAR files (it seems) when extracted. Is that what you already tried?

yep, mostly just a matter of unzipping and copy/pasting the files into the correct place. I got stuck in integrating some files in the /res folder but was able to find help from the author of this extension :smile:

Fixed that for you.

Oh no :frowning:

To that end and to focus all of our efforts on making Android Studio better and faster, we are ending development and official support for the Android Developer Tools (ADT) in Eclipse at the end of the year. This specifically includes the Eclipse ADT plugin and Android Ant build system.

How badly does this err… affect the android build process for openFL?

only the Android extension system (and template overrides) :frowning:

Hi,

Exist a lime template for gradle build system? Almost all the libraries I’m using are deprecating and removing ant support.

It’s time to move forward and add support to gradle. :stuck_out_tongue:

Best,
Fede

I need Gradle too, so I’m going to start working on it. Edit: I made a thread for it.

1 Like