using java decompiler jd-gui and getting // INTERNAL ERROR //

社会主义新天地 提交于 2019-11-28 20:52:24

问题


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?


回答1:


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




回答2:


I fixed the problem by installing Java Jdk 64Bit "Java SE Development Kit 8u111"




回答3:


It could be because of the lambda expressions you are using in your code, I have observed several times JD shows //INTERNAl ERROR// with the lambda expression, try to replace with anonymous class(s). Try to use Lyuten decompiler here is the link: this https://github.com/deathmarine/Luyten/releases/tag/v0.5.4



来源:https://stackoverflow.com/questions/17643825/using-java-decompiler-jd-gui-and-getting-internal-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!