If the use of custom plug-ins more students may encounter pits, upgrading the IDE may lead to compile failure

Or a similar compilation error:

Already by a more recent version of the Java Runtime (class file version 55.0), This version of the Java Runtime only recognizes class file versions up to 52.0 at org.gradle.api.internal.plugins.DefaultPluginRegistry$1.load(DefaultPluginRegistry.java:72) at org.gradle.api.internal.plugins.DefaultPluginRegistry$1.load(DefaultPluginRegistry.java:52)Copy the code

The value can be modified as follows:

This ensures that Android Studio is compiled. But sometimes we need to compile projects from command on CI

At this point, it may fail, which is quite troublesome, and you need to install the Java11 environment and compile it.

If the plugin you are failing is your own code, it is easy to change it. Just specify the java8 version in your plugin code, as shown in the following figure:

Then rebuild and upload Maven, and the main app can introduce a new plug-in to solve the problem