-
Notifications
You must be signed in to change notification settings - Fork 947
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
java.lang.NoClassDefFoundError: okhttp3/Interceptor #832
Comments
Happens on java 8 also An error occurred while executing a save: java.lang.NoClassDefFoundError: okhttp3/Interceptor] (APNX-1-4198-000) |
I see the okhttp 5.0.0-alpha7 jar has no class files in it. Is this a Java 9 modules thing? An issue with how okhttp published it?
okhttp 4.9.3 has class files |
@arriolac is there any update or timeline for a fix? |
okhttp Version 5.0.0-alpha.4 is the first version without class files.
|
This change partially reverts the upgrade performed in googlemaps#829, and is an alternative fix for googlemaps#816. OkHttp depends on Kotlin 1.6.20, which is not vulnerable to CVE-2020-29582. This downgrade also resolves googlemaps#832. See: - https://square.github.io/okhttp/changelogs/changelog_4x/#version-4100 - https://nvd.nist.gov/vuln/detail/CVE-2020-29582
I filed #839, which should resolve this issue. |
If it is related to the kotlin-multiplatform change, that's here - square/okhttp@3ad1912. @swankjesse, do you have any insight, could this NoClassDefFoundError be related to that commit |
We’re tracking this here: In 5.x we adopted a Gradle feature for resolving artifacts that doesn’t work in Maven, so we’re going to update our builds to not require that feature. |
thanks! Does that issue apply even when just the library (google-maps-services-java) depends on okhttp3 and the app does not? |
Any updates on the fix? |
It would be nice if one of the maintainers had a look at #839. |
Same problem here, due to this issue we can't update the jar from 2.0.0 to 2.1.0 |
## [2.1.1](v2.1.0...v2.1.1) (2022-10-18) ### Bug Fixes * Downgrade OkHttp 5.0.0-alpha.7 -> 4.10.0 ([71a2128](71a2128)), closes [#829](#829) [#816](#816) [#832](#832) [/square.github.io/okhttp/changelogs/changelog_4x/#version-4100](https://github.com//square.github.io/okhttp/changelogs/changelog_4x//issues/version-4100) * fixes merge conflict artifacts ([1999ac7](1999ac7))
🎉 This issue has been resolved in version 2.1.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Any reason why the latest maven release is still v2.1.0? https://search.maven.org/search?q=a:google-maps-services https://mvnrepository.com/artifact/com.google.maps/google-maps-services |
+1 |
Oops - looks like something borked in the release action. Just published as 2.1.2 |
I just cloned the repo, built a jar with gradlew that's labeled 2.1.2 but I'm getting this error when I move the JAR to another project: Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/Interceptor Any ideas? |
getting the same error with 2.2.0. Caused by: java.lang.ClassNotFoundException: okhttp3.Interceptor not found by google-maps-2.1.0 [642] |
Environment details
com.google.maps:google-maps-services:2.1.0
Code example
Additional information
The issue does not exist on
com.google.maps:google-maps-services:2.0.0
The text was updated successfully, but these errors were encountered: