问题
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