How to build jar for Android library project in In

2019-06-27 03:50发布

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

enter image description here

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

enter image description here

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

1条回答
叛逆
2楼-- · 2019-06-27 04:43

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.

查看更多
登录 后发表回答