简体   繁体   中英

How to create android Library and distribute as a single jar without resources and android manifest file

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 .

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 (eg, <jar> task in Ant). See https://github.com/commonsguy/cwac-prefs for an example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM