bytedance / ByteX

ByteX is a bytecode plugin platform based on Android Gradle Transform API and ASM. 字节码插件开发平台
Apache License 2.0
3.14k stars 463 forks source link

> java.lang.RuntimeException: proguard.ParseException: Expecting opening '(' or separator ';' before 'return' in line 5 of file '/home/root/.gradle/caches/transforms-2/files-2.1/bed2b0a080851d61ffed8106fe58b3c4/rules/lib/META-INF/com.android.tools/r8-from-1.6.0/coroutines.pro' #134

Open Xinmeng322 opened 2 years ago

Xinmeng322 commented 2 years ago

FAILURE: Build failed with an exception.

Xinmeng322 commented 2 years ago

import getter-setter-inline-plugin 会编译不过, 有大佬遇到过么?指导下。

yangzhiqian commented 2 years ago

你这里是不是将插件的依赖放到到implementation中了?插件依赖确保是放在buildScript的classpath中

Xinmeng322 commented 2 years ago

你这里是不是将插件的依赖放到到implementation中了?插件依赖确保是放在buildScript的classpath中

没有,放到项目根目录的build.gradle文件里的buildscript 里面的dependencies 里面用classpath引得

yangzhiqian commented 2 years ago

/home/root/.gradle/caches/transforms-2/files-2.1/bed2b0a080851d61ffed8106fe58b3c4/rules/lib/META-INF/com.android.tools/r8-from-1.6.0/coroutines.pro 确认一下这个文件是否有问题,bytex使用proguard的库解析混淆配置。

davezhou2022 commented 1 year ago

这里更新下 progurad 的版本可以解决,我目前用 7.3.0 的最新版本,不会有这个报错了。