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

can't build project #954

Closed
pokerfaceCmy opened this issue Sep 28, 2022 · 1 comment
Closed

can't build project #954

pokerfaceCmy opened this issue Sep 28, 2022 · 1 comment

Comments

@pokerfaceCmy
Copy link

android studio : Android Studio Flamingo | 2022.2.1 Canary 2

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'tivi'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.sergei-lapin.napt:gradle:1.16.
     Required by:
         project : > com.sergei-lapin.napt:com.sergei-lapin.napt.gradle.plugin:1.16
      > No matching variant of com.sergei-lapin.napt:gradle:1.16 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.5.1' but:
          - Variant 'apiElements' capability com.sergei-lapin.napt:gradle:1.16 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 9 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.5.1')
          - Variant 'javadocElements' capability com.sergei-lapin.napt:gradle:1.16 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.5.1')
          - Variant 'runtimeElements' capability com.sergei-lapin.napt:gradle:1.16 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 9 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.5.1')
          - Variant 'sourcesElements' capability com.sergei-lapin.napt:gradle:1.16 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.5.1')

* Try:
> Run with --info or --debug option to get more log output.

@chrisbanes
Copy link
Owner

Tivi now requires to be built using JDK 11, but your Android Studio setup seems to be using JDK 8.

You can change your JDK using these instructions: https://developer.android.com/studio/intro/studio-config#jdk

@chrisbanes chrisbanes closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2022
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