Konloch / bytecode-viewer

A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)
https://bytecodeviewer.com
GNU General Public License v3.0
14.69k stars 1.15k forks source link

GUI exits suddenly when trying to decompile APK #161

Closed ghost closed 5 years ago

ghost commented 7 years ago

The GUI exits with no warning or error on Windows 10. Running it from the command line reveals the following:

https://the.bytecode.club - Created by @Konloch - Bytecode Viewer 2.9.8
Checking & Deleting foreign/outdated libraries
Loading libraries...
Loading library apktool_2.0.1_obf-2.jar
Succesfully loaded apktool_2.0.1_obf-2.jar
Loading library baksmali-2.0.3_obf.jar
Succesfully loaded baksmali-2.0.3_obf.jar
Loading library byteanalysis-1.0.jar
Succesfully loaded byteanalysis-1.0.jar
Loading library cfr_0_115.jar
Succesfully loaded cfr_0_115.jar
Loading library commons-codec-1.9.jar
Succesfully loaded commons-codec-1.9.jar
Loading library commons-compiler.jar
Succesfully loaded commons-compiler.jar
Loading library commons-io-2.4.jar
Succesfully loaded commons-io-2.4.jar
Loading library commons-lang3-3.3.2.jar
Succesfully loaded commons-lang3-3.3.2.jar
Loading library dex_obf.jar
Succesfully loaded dex_obf.jar
Loading library fernflower-2016.jar
Succesfully loaded fernflower-2016.jar
Loading library imgscalr-lib-4.2.jar
Succesfully loaded imgscalr-lib-4.2.jar
Loading library janino.jar
Succesfully loaded janino.jar
Loading library jar-rename-1.6.jar
Succesfully loaded jar-rename-1.6.jar
Loading library jasmin-p2.5.jar
Succesfully loaded jasmin-p2.5.jar
Loading library jd-gui-1.0.0-RC4.jar
Succesfully loaded jd-gui-1.0.0-RC4.jar
Loading library jgraphx.jar
Succesfully loaded jgraphx.jar
Loading library procyon-decompiler-0.5.30.jar
Succesfully loaded procyon-decompiler-0.5.30.jar
Loading library rsyntaxtextarea.jar
Succesfully loaded rsyntaxtextarea.jar
Loading library slf4j-api-1.7.18.jar
Succesfully loaded slf4j-api-1.7.18.jar
Loading library slf4j-nop-1.7.18.jar
Succesfully loaded slf4j-nop-1.7.18.jar
Loading library smali-2.0.3-obf-patched.jar
Succesfully loaded smali-2.0.3-obf-patched.jar
Loading library zt-zip-1.8.jar
Succesfully loaded zt-zip-1.8.jar
Checking krakatau
Checking enjarify
Start up took 3 seconds
I: Using Apktool 2.0.1 on com.xiaomi.midrop-436368bd5f42660c8eceb27dd5356d22.apk
I: Loading resource table...
I: Decoding Shared Library (miui), pkgId: 16
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Adam\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x100d0017
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 16. You must install proper framework files, see project website for more info.

com.xiaomi.midrop-436368bd5f42660c8eceb27dd5356d22.apk.zip

diabl0w commented 1 month ago

this is closed, what is the solution?

Konloch commented 1 month ago

This was about 5 years ago, but I'm pretty sure the solution was just upgrading APKTool from 2.0.1 to 2.3.0. - https://github.com/Konloch/bytecode-viewer/commit/cbb642d21f527cd18316fbf6efe88c9a2eedfe7d

If you're experiencing this issue today with the latest BCV version please open a new issue with the stack trace, or join our discord and we can assist you there.