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

Error: superclass access check failed in ButterKnifeProcessor #981

Open
Abhishek-Bansode opened this issue Mar 13, 2023 · 6 comments
Open

Comments

@Abhishek-Bansode
Copy link

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)

@SanjaySargam
Copy link
Contributor

You are in abhishek/dev branch
Go to main branch and try once

@Abhishek-Bansode
Copy link
Author

You are in abhishek/dev branch Go to main branch and try
just now switched to master branch used git pull origin master and tried to run the app.
But still getting same error

@SanjaySargam
Copy link
Contributor

use git checkout main

@Abhishek-Bansode
Copy link
Author

In local machine I have master branch as my main branch. As I said earlier, i already used git checkout master and then git pull origin master too. But error is not getting resolved

@SebaDro
Copy link
Contributor

SebaDro commented Jul 25, 2023

As mentioned from other users, this is very likely an issue with local cache of your IDE. Maybe, a gradle clean build will help. Otherwise, consider a fresh git clone. Therefore, I will close this for now.

@SebaDro SebaDro closed this as completed Jul 25, 2023
@SebaDro SebaDro reopened this Jul 25, 2023
@SebaDro
Copy link
Contributor

SebaDro commented Jul 25, 2023

It seems there is actually a problem when trying to build the project with JDK17 caused by missing deps that are not part of JDK17 anymore. Build with JDK11 still works, could you give it a try? However, the build of the enviroCar app is still targeted for JDK8 and there might be additional problems when building with a newer JDK version. Hence, I reopened the issue to have it on our agenda. Thanks for reporting it @Abhishek-Bansode .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants