android-x2j icon indicating copy to clipboard operation
android-x2j copied to clipboard

java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3

Open mikelhm opened this issue 2 years ago • 0 comments

install 执行task dexBuilderClassicNormalDebug 的时候报错: Execution failed for task ':packages:dexBuilderClassicNormalDebug'.

There was a failure while executing work items A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction > Failed to process: /Users/XXX/build/intermediates/transforms/X2JTransform/classicNormal/debug/206.jar

Compilation failed to complete, origin: /Users/XXX/build/intermediates/transforms/X2JTransform/classicNormal/debug/896.jar:com/bytedance/sdk/openadsdk/core/x.class

这个jar 包是bytedance sdk的,项目里使用了pangle 广告sdk.

貌似是Android X2J 使用了 gradle transform api,在 APP 构建期间自动将 java 字节码做转换,在处理bytedance sdk的时候出问题了。

我的需求只需要自动把xml 生成java 文件就行。不用hook LayoutInflate.inflate那些调用。

mikelhm avatar Dec 22 '23 15:12 mikelhm