赞
踩
构建成功,但在模拟器上运行失败并在控制台中显示以下消息:
Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x65e8e2f6) 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 @0x65e8e2f6
最佳答案
您应该使用不同的 jdk 进行编译,我正在使用过于高级的 jdk 进行编译。将其还原为 jdk11 为我解决了
关于android - 如何在 Android Studio 中使用 ButterKnife 修复此错误?,我们在Stack Overflow上找到一个类似的问题: How can I fix this error with ButterKnife in Android Studio? - Stack Overflow
转自:android - 如何在 Android Studio 中使用 ButterKnife 修复此错误? - IT工具网
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。