'Android Studio GradleException

I work with AndroidStudio (now BumbleBee) under Windows 10. Now I have to migrate to Java 11.

While old systems compiles fine. The new one (Java 11) does not.

Error resolving plugin [id: 'com.android.application', version: '7.1.2']
> Plugin request for plugin already on the classpath must not include a version

* Exception is:
org.gradle.api.GradleException: Error resolving plugin [id: 'com.android.application', version: '7.1.2']
<152 internal lines>
Caused by: org.gradle.plugin.management.internal.InvalidPluginRequestException: Plugin request for plugin already on the classpath must not include a version
    at org.gradle.plugin.use.resolve.internal.AlreadyOnClasspathPluginResolver.resolve(AlreadyOnClasspathPluginResolver.java:62)
    at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:213)
    ... 151 more

What to do ?

Any hint how to solve it



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source