轉自:https://blog.csdn.net/m0_37696990/article/details/103931261
使用apktool反編譯apk時報錯
Exception in thread "main" org.jf.dexlib2.dexbacked.DexBackedDexFile$NotADexFile
: Not a valid dex magic value: cf 77 4c c7 9b 21 01 cd
提示很明顯,就是非法Dex,這是因爲apk裏有加密過後的dex文件,比如有些apk的assets目錄下有加密後的Dex文件,添加–only-main-classes參數即可
java -jar "%~dp0\apktool_2.4.1.jar" d -f Game.apk -only-main-classes