Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个 jar 文件,我想编译成一个 dex 文件。
要将 1 个 jar 编译成 dex,可以使用以下命令:
dx --dex --output="/tmp/dx.dex" "/tmp/input.jar"
有没有办法将多个 jar 编译成一个 dex 文件?
谢谢,
StackOverflow 上有很多关于如何将多个 jar 合并到一个 jar 中的答案(然后你可以 dex)。这是其中之一: 将发布合并到一个 JAR 文件中的最简单方法