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
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
I fixed the problem by installing Java Jdk 64Bit "Java SE Development Kit 8u111"
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
Please download latest version. Faced similar issue and it worked after updating.
http://java-decompiler.github.io/