No matching variant of com.android.tools.build:gradle:8.0.0 was found. The consumer was configured。。

No matching variant of com.android.tools.build:gradle:8.0.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute ‘org.gradle.plugin.api-version’ with value ‘8.0’ but:

Does it report an error when creating a new project? File | Settings | Build, Execution, Deployment | Build Tools | Gradle. Change your Gradle JDK. Mine was changed to corretto 17.
-------------------------------------------------- ----A good memory is not as good as a bad pen.

Guess you like

Origin blog.csdn.net/qq_29862247/article/details/134111640