Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve all files for configuration in Exaplme App #2

Open
Equin opened this issue Mar 20, 2023 · 1 comment
Open

Could not resolve all files for configuration in Exaplme App #2

Equin opened this issue Mar 20, 2023 · 1 comment

Comments

@Equin
Copy link

Equin commented Mar 20, 2023

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

@farimarwat
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants