Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dex version 040 is not supported #163

Open
JarJarBlinkz opened this issue Oct 5, 2024 · 1 comment
Open

Dex version 040 is not supported #163

JarJarBlinkz opened this issue Oct 5, 2024 · 1 comment
Labels
Apktool Related to Apktool

Comments

@JarJarBlinkz
Copy link

JarJarBlinkz commented Oct 5, 2024

Dex version 040 is not supported - UnsupportedFile Exception

It would be great if ApkTool/Baksmali could be updated to support dex version 040.

Description:

I encountered an issue while trying to decompile an APK using ApkTool/Baksmali. The error message indicates that .dex version 040 is not supported, which prevents the tool from successfully decoding the APK.

Error Message:

I: Baksmaling classes.dex...
Exception in thread "main" com.android.tools.smali.dexlib2.util.DexUtil$UnsupportedFile: Dex version 040 is not supported
at com.android.tools.smali.dexlib2.util.DexUtil.verifyDexHeader(DexUtil.java:96)
at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile.getVersion(DexBackedDexFile.java:172)
at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile.(DexBackedDexFile.java:96)
at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile.(DexBackedDexFile.java:199)
at com.android.tools.smali.dexlib2.dexbacked.ZipDexContainer$1.getDexFile(ZipDexContainer.java:180)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:88)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:36)
at brut.androlib.ApkDecoder.decodeSourcesSmali(ApkDecoder.java:220)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:127)
at brut.apktool.Main.cmdDecode(Main.java:217)
at brut.apktool.Main.main(Main.java:92)

@kefir500
Copy link
Owner

Related Apktool issue: iBotPeaches/Apktool#3562
Please, update the Apktool to the latest version via HelpCheck for Updates.

@kefir500 kefir500 added the Apktool Related to Apktool label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apktool Related to Apktool
Projects
None yet
Development

No branches or pull requests

2 participants