Reputation:
I want to create an android library project and I want to distribute it as jar file .I read some blog that how to create a library project in android but in all of them I have to distribute android resources file with jar file.
Can any one suggest me how to create a android library project as java project, So that I can distribute it as a one jar file with out resources and android manifest file .
Upvotes: 0
Views: 535
Reputation: 1006654
If your Android library project uses resources, you have no choice but to ship those resources.
If your Android library project does not use resources, you create a JAR file the same way as you would for any other Java project (e.g., <jar>
task in Ant). See https://github.com/commonsguy/cwac-prefs for an example.
Upvotes: 2