1.编译时抛出的错误:Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x661e7249) cannot access class com.sun.tools.javac.tree.TreeScanner (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x661e7249
2.错误原因:由于butterknife使用了大量的Android api接口,在jdk11以后api接口使用方式发生改变。导致butterknife在编译com.sun.tools.javac.tree.TreeScanner时错误。
3.版本:butterknife版本 10.2.3
gradle版本 8.2.0
jdk版本 17.0
4.想解决的问题:能否在保留高版本的情况下完成编译