更新 AndroidStudio 后項目編譯報錯,
AS 版本
編譯報錯,
Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x6d71ed88) 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 @0x6d71ed88
ButterKnife 插件是下載過的。
解決方法:更換 JDK 版本。
我本地默認是 jdk 17(對應圖中的 jbr-17),點擊 Download JDK 下載之前的版本,如 jdk 11 、jdk 15 。文章來源:http://www.zghlxwxcb.cn/news/detail-718907.html
我下載 jdk 11 報錯,下載 jdk 15 ,sync ,build , OK。文章來源地址http://www.zghlxwxcb.cn/news/detail-718907.html
到了這里,關(guān)于AndroidStudio 更新后編譯報錯Cause: superclass access check failed: class butterknife.compiler.ButterKnifePr的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!