smali转dex

java -jar smali.jar -o classes.dex test/

直接输入上面的话,会出错

1
2
3
4
5
Exception in thread "main" com.beust.jcommander.MissingCommandException: Expected a command, got -o
at com.beust.jcommander.JCommander.parseValues(JCommander.java:725)
at com.beust.jcommander.JCommander.parse(JCommander.java:304)
at com.beust.jcommander.JCommander.parse(JCommander.java:287)
at org.jf.smali.Main.main(Main.java:87)

加上 assemble 即可,如下:

java -jar smali.jar assemble -o classes.dex test/