Reputation: 6982
I have an Android library, but it has no activities or xml pages so it should actually be a Java Library, how do I convert it and should I?
Upvotes: 1
Views: 879
Reputation: 438
The 'aar' bundle is the binary distribution of an Android Library Project. .aar file consists a JAR file and some resource files. You can convert it as .jar file using this steps
1) Copy the .aar file in a separate folder and Rename the .aar file to .zip file using any winrar or zip Extractor software.
2) Now you will get a .zip file. Right click on the .zip file and select "Extract files". Will get a folder which contains "classes.jar, resource, manifest, R.java, proguard(optional), libs(optional), assets(optional)".
3) Rename the classes.jar file as yourjarfilename.jar and use this in your project.
Upvotes: 0
Reputation: 23982
but it has no activities or xml pages so it should actually be a Java Library
It does not mean that you can "convert" it. In a nutshell every Android library is a Java library which relies on Android SDK.
Upvotes: 3