美文网首页
Cause: superclass access check f

Cause: superclass access check f

作者: 牛年大吉2021 | 来源:发表于2024-04-09 15:17 被阅读0次

    问题:
    Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x17a5aa4b) 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 @0x17a5aa4b
    解决方案:
    gradle.properties中配置以下:

    org.gradle.jvmargs=-Xmx1920M \
    --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
    --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
    --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
    

    相关文章

      网友评论

          本文标题:Cause: superclass access check f

          本文链接:https://www.haomeiwen.com/subject/vaefxjtx.html