Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.4k stars 805 forks source link

build时执行transformClassesWithRobustForRelease失败, java.io.IOException: invalid constant type: 19 at 5 #399

Closed directionyu closed 4 years ago

directionyu commented 4 years ago

异常类型:编译异常

Robust版本:如:0.4.87.5

Gradle版本:如:3.2.0

系统:如:mac

堆栈/日志:

Task :middleware:transformClassesWithRobustForRelease ================robust start================ read all class file cost 0.4 second

Task :middleware:transformClassesWithRobustForRelease FAILED

FAILURE: Build failed with an exception.

LinXiaoTao commented 4 years ago

需要升级 Javassist 版本到 3.27.0-GA

Easy-Ez commented 4 years ago

解决了吗 朋友~

directionyu commented 4 years ago

解决了吗 朋友~

gradle 版本以及 build tools 的兼容性问题 , 我之前配置的是 'com.android.tools.build:gradle:3.2.0' distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip 就没问题了