解决:xxx has been compiled by a more recent version of the Java Runtime (class file version 55.0)

reason

The current class is compiled by jdk1.8 version, and the current running environment is lower than jdk1.8, so the current situation occurs.

Correspondence between java code and name
49 = Java 5
50 = Java 6 51 = Java
7
52 = Java 8
53 = Java 9 54 = Java 10
55 = Java
11 56
= Java 12 57 = Java
13
58 = Java 14

solution

Upgrade the jdk version number of the current project, or reduce the jdk version number compiled by the reference library

android{
	...
    compileOptions {
       sourceCompatibility JavaVersion.VERSION_1_8
       targetCompatibility JavaVersion.VERSION_1_8
    }
}

Guess you like

Origin blog.csdn.net/u011106915/article/details/132279315