SOLVED | No matching variant of gradle was found. The consumer was configured...

Опубликовано: 21 Август 2026
на канале: SHAAD DEV STUDIO
1,586
21

No matching variant of com.android.tools.build:gradle:8.0.2 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:
Variant 'apiElements' capability com.android.tools.build:gradle:8.0.2 declares a library, packaged as a jar, and its dependencies declared externally:
Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
Other compatible attribute:


Unsupported Java.
Your build is currently configured to use Java 20.0.1 and Gradle 8.0.