Skip to content

Error: superclass access check failed in ButterKnifeProcessor #981

Open
@Abhishek-Bansode

Description

@Abhishek-Bansode

Whenever I try to set up and run the EnviroCar application on Android Studio, I encounter the following error message:

Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x7d141519) cannot access class com.sun.tools.javac.tree.TreeScanner (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x7d141519

This error occurs when the butterknife library tries to access the com.sun.tools.javac.tree package, which is not exported to the unnamed module in the jdk.compiler module.

I have tried several ways to solve this issue, including updating the ButterKnife library version and checking the JDK version compatibility, but the error still persists.

I would appreciate any assistance or guidance on how to resolve this issue so that I can successfully set up and run the EnviroCar application on Android Studio.

AVD spec:- API level 30
JDK 16, also tried on JDK 17 still getting errors like mentioned.

Screenshot (584)

Screenshot (585)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions