Skip to content

IllegalAccessError when trying to build clean dev branch on Windows #255

@CatRyBouReal

Description

@CatRyBouReal

Describe the bug
When trying to build FTCLib from a clean checkout of the dev branch, I am unable to do so because I get an IllegalAccessError.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the FTCLib repository from github
  2. Checkout the dev branch
  3. Select JDK 1.8 as the Gradle JDK in Android Studio settings
  4. Run .\gradlew.bat :core:clean :core:build
  5. Build fails with an IllegalAccessError

Expected behavior
Build completes successfully.

Full error message

java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x747d433c) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x747d433c

Additional context
When attempting to build using WSL, it works without any problems.

  • OS: Windows 10 Build 19045.4170
  • Android Studio Version: 2023.1.1 Patch 2
  • JDK Version: Amazon Corretto 1.8

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions