1 當前Android Studio版本
?2 運行報錯信息
Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x69d73d) 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 @0x69d73d
3 解決:修改Gradle JDK版本為15
?3.1 路徑:file -> settings
文章來源:http://www.zghlxwxcb.cn/news/detail-513588.html
3.2 下載JDK:下載版本為15的JDK
文章來源地址http://www.zghlxwxcb.cn/news/detail-513588.html
?3.3 下載完成后,apply下,運行項目
3??方法來源?
到了這里,關于Android Studio 更新至2022.2.1,運行項目失敗的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!