-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Illegal class file: Class module-info is missing a super type. #1627
Comments
Could all of you experiencing this issue please describe your project:
And describe where this issue is occuring:
|
|
To anyone experiencing this issue with Android Studio: Please try upgrading the Android Gradle plugin to at least If upgrading the Android Gradle plugin is not an option, you can try using a tool like "Jar Jar" to remove the |
I've tried
Setting up buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'org.anarres.jarjar:jarjar-gradle:1.0.1'
}
}
apply plugin: 'org.anarres.jarjar' my attempts to fix the problem: ...
dependencies {
compile jarjar.repackage {
from('com.google.code.gson:gson:2.8.6') {
classDelete "com.google.gson"
}
}
...
Have tried I however expect those solutions will work for some other gradle versions (ResourceDeadlockException was added in 4.x) |
my quick fix is to use older version of implementation("com.google.code.gson:gson:2.8.5") {
force = true
} |
Can you please check if this issue still occurs with the latest Gson version? The way the |
I am going to close this because no answer has been provided. If you still experience this with the latest Gson version, feel free to comment here again with more details. |
When I use the 2.8.6, It's toast "Illegal class file: Class module-info is missing a super type",
The text was updated successfully, but these errors were encountered: