您的位置:首页 > 产品设计 > UI/UE

jd-gui报错INTERNAL ERROR 解决办法

2016-01-18 19:08 585 查看
这里贴出关键部分,如果你需要看英文原版请点击下面的连接。下面中文部分是我的简单翻译。

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?

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

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

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/jadx

答案:请去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下载,因为我添加了两个依赖的包。

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

作者:ouchuquan

出处:/article/4706215.html

本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: