jd-gui報錯INTERNAL ERROR 解決辦法

這裏貼出關鍵部分,若是你須要看英文原版請點擊下面的鏈接。下面中文部分是個人簡單翻譯。html

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?java

問題:
我用dex2jar工具反編譯了apk文件,但當我用jd-gui反編譯前面操做得到的jar文件的時,能很完美地看到大部分類反編譯後的代碼,但有一部分類不能顯示出來--constants類,僅僅顯示了錯誤:「// INTERNAL ERROR //」,而且沒能反編譯出任何東西,請問還有什麼辦法恢復constants這個類成java代碼文件嗎?git

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

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

答案:請去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下載,由於我添加了兩個依賴的包ui


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

做者:ouchuquanspa

出處:http://www.cnblogs.com/langtianya/p/5140226.html翻譯

本文版權歸做者和博客園共有,歡迎轉載,但未經做者贊成必須保留此段聲明,且在文章頁面明顯位置給出原文連

相關文章
相關標籤/搜索