I want to use an android library in Unity. The library contains a service which delivers some content to consume in your app. For native android apps (apps programmed using java), this content can be easily received by extending the library's service in the application. But I want to use this service (in fact the content that this service provides) in a Unity application. Can anyone explain how to do this?
First you can't use .aar
library files inside unity because the new format for Android Archives (.aar) is integrated with the new Gradle build system
, however, Unity does not use that when building the project for Android yet.
So , you can compile your .aar
file , extract it, and use the classes.jar
to access the java classes inside the project you have. ( I've used this method when I converted from Eclipse to Android Studio ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With