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

Error: Detail Error Information in File #29

Open
Krosxx opened this issue Jul 31, 2023 · 4 comments
Open

Error: Detail Error Information in File #29

Krosxx opened this issue Jul 31, 2023 · 4 comments

Comments

@Krosxx
Copy link

Krosxx commented Jul 31, 2023

打包出现错误:

BlackObf Class: Lxxx/zp;#<init>
BlackObf Class: Lxx/zp;#i
BlackObf Class: Lxx/zp;#x
BlackObf Class: Lxx/zp;#xx
Detail Error Information in File ./1690794457967splitclasses.dex-error.zip
Please report this file to https://github.com/pxb1988/dex2jar/issues if possible.
jar2dex /xx/app/build/intermediates/dex/release/minifyReleaseWithR8/1690794457967obfclasses.dex.jar -> /xxxxx/app/build/intermediates/dex/release/minifyReleaseWithR8/1690794457967obfclasses.dex.dex
call com.android.dx.command.Main.main[--dex, --no-strict, --output=/xxxx/app/build/intermediates/dex/release/minifyReleaseWithR8/1690794457967obfclasses.dex.dex, /xxxx/app/build/intermediates/dex/release/minifyReleaseWithR8/1690794457967obfclasses.dex.jar]

之前是正常的。
出现这个 apk 正常生成,但是运行时 异常,例如 kotlin companion object 实例为 null。
不排除本地改动影响,但无法一一排除。请教可能出现此问题的原因?

@Krosxx
Copy link
Author

Krosxx commented Jul 31, 2023

dex-error.zip 文件

.....
================= 3 ===================
Lxxx/O0OO0O00;->intent(Landroid/widget/SpinnerAdapter;Landroid/graphics/drawable/Drawable;)I
java.lang.RuntimeException: Method code too large!

.......

之前配置的 depth = 2 正常使用,某次修改 depth = 10, 就一直报 Detail Error Information in File,已经改回 depth = 2 甚至 depth = 0, 且尝试过 Clean Project, 仍未解决

@Krosxx
Copy link
Author

Krosxx commented Jul 31, 2023

@Krosxx Krosxx closed this as completed Jul 31, 2023
@Krosxx
Copy link
Author

Krosxx commented Aug 3, 2023

已解决,原因是某个类里的方法过大,~200行;最后抽取方法来解决。
ps: 上边的 dex-error 有误导:显示的是混淆后的方法,并且不是问题方法。查找根源问题先关闭代码混淆,再看报错。

@Krosxx
Copy link
Author

Krosxx commented Aug 3, 2023

问题再次出现... 代码未改动
CodingGay/BlackObfuscator#17

@Krosxx Krosxx reopened this Aug 3, 2023
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

1 participant