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

Build fails with latest AGP 7.4 alpha versions #364

Closed
adinauer opened this issue Aug 3, 2022 · 0 comments
Closed

Build fails with latest AGP 7.4 alpha versions #364

adinauer opened this issue Aug 3, 2022 · 0 comments
Labels
bug Something isn't working Platform: Android

Comments

@adinauer
Copy link
Member

adinauer commented Aug 3, 2022

Gradle Version

7.5.0

AGP Version

7.4.0-alpha4+

Code Minifier/Optimizer

No response

Version

3.1.3

Sentry SDK Version

6.3.0

Steps to Reproduce

Add 7.4.0-alpha04 or newer to the matrix build (test-publish-dry-run.yaml)

Complains about incompatibility between Java 8 and 11

Expected Result

Build succeeds

Actual Result

A problem occurred configuring project ':examples:android-gradle'.
> Could not determine the dependencies of task ':plugin-build:compileGroovy'.
   > Could not resolve all task dependencies for configuration ':plugin-build:compileClasspath'.
      > Could not resolve com.android.tools.build:gradle:7.4.0-alpha04.
        Required by:
            project :plugin-build
         > No matching variant of com.android.tools.build:gradle:7.4.0-alpha04 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably not packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
             - Variant 'apiElements' capability com.android.tools.build:gradle:7.4.0-alpha04 declares an API of a library, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
                 - 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 its target Java environment (preferred optimized for standard JVMs)
             - Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.0-alpha04 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 environment (preferred optimized for standard JVMs)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them preferably not packaged as a jar)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
             - Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.0-alpha04 declares a runtime of a library, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
                 - 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 its target Java environment (preferred optimized for standard JVMs)
             - Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.0-alpha04 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 environment (preferred optimized for standard JVMs)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them preferably not packaged as a jar)
                     - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
@adinauer adinauer added bug Something isn't working Platform: Android labels Aug 3, 2022
@bruno-garcia bruno-garcia moved this to Needs Discussion in Mobile & Cross Platform SDK Aug 3, 2022
@adinauer adinauer moved this from Needs Discussion to Blocked in Mobile & Cross Platform SDK Aug 31, 2022
@adinauer adinauer moved this from Blocked to Backlog in Mobile & Cross Platform SDK Aug 31, 2022
@romtsn romtsn closed this as completed Sep 30, 2022
Repository owner moved this from Backlog to Done in Mobile & Cross Platform SDK Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: Android
Projects
Archived in project
Development

No branches or pull requests

2 participants