jd-gui报错INTERNAL ERROR 解决办法

这里贴出关键部分,若是你须要看英文原版请点击下面的链接。下面中文部分是个人简单翻译。html

I decompiled an apk file using dex2jar and opened the resulting jar file in jd-gui. I can view almost all of the code nicely but one section - the constants - displays only // INTERNAL ERROR // and nothing else. Is there a way to retrieve the constants?java

问题:
我用dex2jar工具反编译了apk文件,但当我用jd-gui反编译前面操做得到的jar文件的时,能很完美地看到大部分类反编译后的代码,但有一部分类不能显示出来--constants类,仅仅显示了错误:“// INTERNAL ERROR //”,而且没能反编译出任何东西,请问还有什么办法恢复constants这个类成java代码文件吗?git

Anyone passing by this question should look at this instead: https://github.com/deathmarine/Luytengithub

Using this instead of jd-gui, I was able to successully view all code which showed as INTERNAL ERROR on jd-gui.工具

You can also try Jadx: https://github.com/skylot/jadxpost

答案:请去github地址:https://github.com/deathmarine/Luyten下载反编译工具,用这个工具代替jd-gui,我可以成功反编译全部以前用jd-gui没法反编译的文件,也能够用Jadx: https://github.com/skylot/jadx试试,祝你好运,反正个人搞定了,特此记录经验,分享给你们
英文简单,简要翻译,只是但愿能有所帮助。

ps:我用的是luyten工具,本工具提供有.exe后缀的可执行文件,也有.jar版本,读者能够在https://github.com/deathmarine/Luyten地址找一下,不想下载源码的朋友能够用它们,但我不知道它们是不是最新的。因此我下载的是源码来运行工具,为了方便,你能够到个人github:https://github.com/langtianya/Luyten下载,由于我添加了两个依赖的包ui


看原版:http://stackoverflow.com/questions/17643825/using-java-decompiler-jd-gui-and-getting-internal-errorthis

做者:ouchuquanspa

出处:http://www.cnblogs.com/langtianya/p/5140226.html翻译

本文版权归做者和博客园共有,欢迎转载,但未经做者赞成必须保留此段声明,且在文章页面明显位置给出原文连

相关文章
相关标签/搜索