背景
高版本as编译项目错误。2023.1.1版本。
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':erban_core:compileDebugJavaWithJavac'.
superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x6086bee6) 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 @0x6086bee6
解决
高版本as默认配置jdk17,或者更高。但是老项目编译只能用jdk8,或者11.
我这里直接修改11版本即可成功。具体是11或者8,根据自己项目修改。