Could not resolve all artifacts for configuration ':classpath'.
Could not resolve com.github.megatronking.stringfog:gradle-plugin:5.0.0.
Required by:
project :
No matching variant of com.github.megatronking.stringfog:gradle-plugin:5.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.1' but:
Variant 'apiElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a library, packaged as a jar, and its dependencies declared externally:
Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
Other compatible attribute:
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Variant 'javadocElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a runtime of a component, and its dependencies declared externally:
Incompatible because this component declares documentation and the consumer needed a library
Other compatible attributes:
Doesn't say anything about its target Java version (required compatibility with Java 8)
Doesn't say anything about its elements (required them packaged as a jar)
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Variant 'runtimeElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
Other compatible attribute:
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Variant 'sourcesElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a runtime of a component, and its dependencies declared externally:
Incompatible because this component declares documentation and the consumer needed a library
Other compatible attributes:
Doesn't say anything about its target Java version (required compatibility with Java 8)
Doesn't say anything about its elements (required them packaged as a jar)
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Could not resolve com.github.megatronking.stringfog:xor:5.0.0.
Required by:
project :
No matching variant of com.github.megatronking.stringfog:xor:5.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.1' but:
Variant 'apiElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a library, packaged as a jar, and its dependencies declared externally:
Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
Other compatible attribute:
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Variant 'javadocElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a runtime of a component, and its dependencies declared externally:
Incompatible because this component declares documentation and the consumer needed a library
Other compatible attributes:
Doesn't say anything about its target Java version (required compatibility with Java 8)
Doesn't say anything about its elements (required them packaged as a jar)
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Variant 'runtimeElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
Other compatible attribute:
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
Variant 'sourcesElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a runtime of a component, and its dependencies declared externally:
Incompatible because this component declares documentation and the consumer needed a library
Other compatible attributes:
Doesn't say anything about its target Java version (required compatibility with Java 8)
Doesn't say anything about its elements (required them packaged as a jar)
Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
gradle小白,项目目前用的gradle版本6.5.1,AGP使用的是4.1.1,使用的jdk1.8,使用5.0/4.0sync报错如下: