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

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 #71

Closed
aya-salama1989 opened this issue Jan 10, 2022 · 1 comment

Comments

@aya-salama1989
Copy link

Have anyone encountered such an issue, Is it a build Gradle 7.0.+ issue?!

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all artifacts for configuration ':app:classpath'.
   > Could not resolve com.xmartlabs:snapshot-publisher:2.4.0.
     Required by:
         project :app
      > No matching variant of com.xmartlabs:snapshot-publisher:2.4.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.1' but:
          - Variant 'apiElements' capability com.xmartlabs:snapshot-publisher:2.4.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.1')
          - Variant 'runtimeElements' capability com.xmartlabs:snapshot-publisher:2.4.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.1')

@mirland
Copy link
Collaborator

mirland commented Feb 1, 2022

Hi, what version of AGP are you using? If you're using an old AGP version you cannot use the latest plugin version

@mirland mirland closed this as completed Mar 19, 2024
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