BlackObfuscator-ASPlugin icon indicating copy to clipboard operation
BlackObfuscator-ASPlugin copied to clipboard

Error: Detail Error Information in File

Open Krosxx opened this issue 2 years ago • 4 comments

打包出现错误:

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 avatar Jul 31 '23 09:07 Krosxx

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 avatar Jul 31 '23 14:07 Krosxx

https://github.com/pxb1988/dex2jar

Krosxx avatar Jul 31 '23 14:07 Krosxx

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

Krosxx avatar Aug 03 '23 09:08 Krosxx

问题再次出现... 代码未改动 https://github.com/CodingGay/BlackObfuscator/issues/17

Krosxx avatar Aug 03 '23 16:08 Krosxx