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

报错了,需要更新apktool 版本 #79

Closed
cgapk123 opened this issue Dec 24, 2024 · 1 comment
Closed

报错了,需要更新apktool 版本 #79

cgapk123 opened this issue Dec 24, 2024 · 1 comment

Comments

@cgapk123
Copy link

com.android.dex.DexException: Unexpected magic: [0x64, 0x65, 0x78, 0x0a, 0x30, 0x34, 0x30, 0x00]
at com.android.dex.TableOfContents.readHeader(TableOfContents.java:86)
at com.android.dex.TableOfContents.readFrom(TableOfContents.java:72)
at com.android.dex.Dex.(Dex.java:81)
at com.android.dex.Dex.(Dex.java:75)
at com.luoye.dpt.util.DexUtils.writeHashes(DexUtils.java:240)
at com.luoye.dpt.builder.Apk.lambda$extractDexCode$0(Apk.java:437)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

2024-12-24 12:12:12.396 [main] dpt-processor DexCode offset = 8
2024-12-24 12:12:12.397 [main] dpt-processor fileOffset = 10
2024-12-24 12:12:12.401 [main] dpt-processor insns item count:0,method count : 0
2024-12-24 12:12:12.578 [main] dpt-processor zipDataLen: 1531
2024-12-24 12:12:12.579 [main] dpt-processor unShellDexLen:10908

上面是反编译APK报错的,然后我使用其他电脑工具去反编译APK也报错,最后查询更新至最新版 apktool_2.10.0.jar 后正常了,但这个项目的还是不行,所以这个项目的也应该需要更新apktool这种

@luoyesiqiu
Copy link
Owner

应该是不支持新版的dex

luoyesiqiu added a commit that referenced this issue Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants