Jd-gui Error Internal Error resolution

Source: Internet
Author: User

Here is a key section, if you need to see the original English, click the link below. The Chinese part below is my simple translation.

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-to retrieve the constants?

Problem:
I used the Dex2jar tool to decompile the APK file, but when I used Jd-gui to decompile the jar file obtained by the previous operation, I was able to see most of the class's anti-compiled code perfectly, but some classes could not be displayed--constants class , just show the error: "//INTERNAL Error//", and did not decompile anything, what can I do to restore constants this class into a Java code file?

Anyone passing by this question should look at this Instead:https://github.com/deathmarine/luyten

Using This instead of Jd-gui, I is able to successully view all code which showed as INTERNAL ERROR on Jd-gui.

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

Answer: Please go to GitHub address: Https://github.com/deathmarine/Luyten, download The Anti-compilation tool, use this tool instead of Jd-gui, I can successfully decompile all the files previously Jd-gui cannot be recompiled , you can also use JADX:HTTPS://GITHUB.COM/SKYLOT/JADX to try, I wish you good luck, anyway, I have done, hereby record experience, share to everyone
English simple, concise translation, just hope to be helpful.

PS: I use the Luyten tool, this tool provides an executable file with an. exe suffix, and a. jar version, which the reader can find at the Https://github.com/deathmarine/Luyten address. Friends who don't want to download the source can use them, but I don't know if they're up to date. So i download is the source code to run the tool, for convenience, you can go to my github:https://github.com/langtianya/luyten download, because I added two dependent packages .


See Original: Http://stackoverflow.com/questions/17643825/using-java-decompiler-jd-gui-and-getting-internal-error

Ouchuquan

Source:http://www.cnblogs.com/langtianya/p/5140226.html

This article is copyrighted by the author and the blog Park is shared, welcome reprint, but without the author's consent must retain this paragraph, and in the article page obvious location to the original

Jd-gui Error Internal Error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.