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.
我制作了一个.dex file to .jar使用库 dex2jar 转换文件的应用程序。代码如下:
.dex file to .jar
import com.googlecode.dex2jar.v3.Main; { String apkPath = "D://myapk.apk" ; Main.main(apkPath); }
这个代码块工作正常,我得到 asd_dex2jar.jar 文件,但问题是在执行调用 main() 后,程序自动关闭,
那么有没有其他方法可以做到这一点?
检查文档或源代码:https ://code.google.com/p/dex2jar/source/browse/dex-translator/src/main/java/com/googlecode/dex2jar/v3/Main.java
也许你可以调用它的public static void doFile(File srcDex)方法。
public static void doFile(File srcDex)