PandaSpector icon indicating copy to clipboard operation
PandaSpector copied to clipboard

Could not resolve all files for configuration in Exaplme App

Open Equin opened this issue 2 years ago • 1 comments

Trying to run example app, but build is failing.

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'.

Could not resolve all files for configuration ':app:classpath'. Could not resolve io.github.farimarwat:PandaSpector:1.3. Required by: project :app > io.github.farimarwat.pandaspector:io.github.farimarwat.pandaspector.gradle.plugin:1.3 > No matching variant of io.github.farimarwat:PandaSpector:1.3 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but: - Variant 'apiElements' capability io.github.farimarwat:PandaSpector:1.3 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 17 and the consumer needed a runtime of a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'javadocElements' capability io.github.farimarwat:PandaSpector:1.3 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 11) - 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.5') - Variant 'runtimeElements' capability io.github.farimarwat:PandaSpector:1.3 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 17 and the consumer needed a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'sourcesElements' capability io.github.farimarwat:PandaSpector:1.3 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 11) - 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.5')

.......

CONFIGURE FAILED in 252ms

Equin avatar Mar 20 '23 11:03 Equin

Install jdk 17 then Goto project settings>SDK>JDK settings and change jdk to 17 Also use AGP 7.4 version

farimarwat avatar Mar 20 '23 11:03 farimarwat