Android Studio updated to 2022.2.1, running the project failed

1 Current Android Studio version

 2 Running error message

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 Solution: Modify the Gradle JDK version to 15

 3.1 Path: file -> settings

3.2 Download JDK: Download JDK version 15

 3.3 After the download is complete, run the project under apply

3   method source 

Guess you like

Origin blog.csdn.net/qq_54087555/article/details/130699528