Gradle Java sourceCompatibility set to 1.8, creating unresolved dependencies
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- build-system
Research direction
Start by inspecting build.common.gradle and FtcRobotController/build.gradle, focusing on the Java sourceCompatibility and targetCompatibility settings shown in the issue. Check how those settings affect the reported java.lang.invoke.StringConcatFactory dependency error, then build the project with the relevant tools to confirm the unresolved-dependency error is resolved.
Written by the indexing model from the issue text.
Description
build.common.gradle and \FtcRobotController\build.gradle both set Java source compatibility to 1.8:
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
This causes unresolved dependencies in some build tools, as the class files for Java 9+ cannot be loaded if the compiler runs with this compatibility level. Attempting to build the project anyway results in errors such as this:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.invoke.StringConcatFactory. Fix the build path then try building this project
There may be other compatibility settings leading to build errors.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 10k
- Avg merge
- 18m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FIRST-Tech-Challenge/FtcRobotController
-
Android version code Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
FIRST-Tech-Challenge/FtcRobotController#2161 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
FIRST-Tech-Challenge/FtcRobotController#2078 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
FIRST-Tech-Challenge/FtcRobotController#2166 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in FIRST-Tech-Challenge/FtcRobotController
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100