I have a new requirement to include a JAR file myspecial.jarin the Android library that I create. When I create an AAR using gradle, the resulting package has both my classes and classes from myspecial.jarin a single file named classes.jar. I want them to be separated.
According to the Android website https://developer.android.com/studio/projects/android-library.html , this can be done.
In addition, an AAR file may include one or more of the following additional entries:
/assets/
/libs/name.jar
/jni/abi_name/name.so
/proguard.txt
/lint.jar
I tried all the limited gradle -fu that I know of. I can not understand.
: https://github.com/adwiv/android-fat-aar, , , .
TL; DR: gradle libs aar classes.jar.