com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of th

Cause: com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of the Java Runtime (class file version 55.0) It is said on the
Internet that 1.gradle java version is 11 and you are using java 8 55 It’s about java 11 and 52, it’s about java 8, it asks you to set the setting
gradle java version setting, I’ve tried it but it doesn’t work.
2. It is also said that the Android studio version is wrong, and
the above statement is consistent on the Internet. This article is also to refute the above statement. I hope that the following solutions can help everyone who encounters the same problem.
My solution excludes the above two, and the most probable problem is gradle.
It is necessary to change the gradle version, it is best to update to the new version.
insert image description hereThe picture shows the updated version, and the test does not have this problem

Guess you like

Origin blog.csdn.net/u012553125/article/details/127807038