How to build jar for Android library project in Intellij Idea without unnecessary content

◇◆丶佛笑我妖孽 提交于 2019-12-12 12:28:35

问题


When I build jar for Android library project in Intellij Idea it puts inside all dependent jar that I use in the project and classes.jar

but as I think all that stuff is unnecessary and jar can contain only compiled classes e.g.

Is that possible to compile clean jar in Idea? or should I use ant or something else?


回答1:


You cloud compile the project using intelliJ, then locate the class files, the go to their root folder, then its parent folder and use jar cvf foo.jar -R <root>/ in a shell.



来源:https://stackoverflow.com/questions/12948082/how-to-build-jar-for-android-library-project-in-intellij-idea-without-unnecessar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!