android / android/nowinandroid

[Documentation]: missing note that Gradle's JDK must be 17

Open
#1,137 3 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Kotlin
Stars
21.8k
Forks
4.6k
Avg merge
19h 20m
Merged PRs (30d)
2

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Page URL (type "NEW" for a new page suggestion)

NEW

### What's the documentation problem or suggestion?

I just downloaded the code, imported and: boom. Error.

> A problem occurred configuring root project 'nowinandroid'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.2.
Required by:
project : > androidx.baselineprofile:androidx.baselineprofile.gradle.plugin:1.2.2
> No matching variant of androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.2 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.5' but:
- Variant 'apiElements' capability androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.2 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'runtimeElements' capability androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.2 declares a library for use during runtime, 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 '8.5')
- Variant 'sourcesElements' capability androidx.benchmark:benchmark-baseline-profile-gradle-plugin:1.2.2 declares a component for use during runtime, 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 '8.5')

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

No documentation file or test is named. Start by locating the project's onboarding or setup documentation and checking the Gradle/JDK requirements; done means the relevant guidance clearly states that Gradle must run with JDK 17 and helps prevent the reported Java 11 resolution error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
build-system, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.