java.lang.NoClassDefFoundError: okhttp3.internal.Util on Android 4.4 Version?
See original GitHub issueI have added the library through Gradle. It works fine on Version 5.0 & above. I saw this issue. I haven’t got a solution
compile 'com.squareup.okhttp3:okhttp:3.1.2'
compile 'com.squareup.okio:okio:1.6.0'
Caused by: java.lang.NoClassDefFoundError: okhttp3.internal.Util
at okhttp3.OkHttpClient.<clinit>(OkHttpClient.java:61)
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
java.lang.NoClassDefFoundError: okhttp3.internal.Util
1 Answer 1 ... You have enabled "multiDexEnabled true" and most probably you are not installing it in Application class. This is how...
Read more >B4A 11.50 Beta#1 -> java.lang.NoClassDefFoundError - B4X
Hi, i test the last version B4A 11.50 Beta#1 and get error on a old device KITKAT 4.4 Not to very important, but...
Read more >Firebase Android SDK Release Notes
App Distribution Gradle plugin version 2.1.3. Fixed an error ( java.lang.ClassNotFoundException: com.android.build.gradle.internal.scope.
Read more >Download okhttp JAR 4.4.1 With all dependencies!
Download okhttp JAR 4.4.1 with all dependencies. These are the files of the artifact okhttp version 4.4.1 from the group com.squareup.okhttp3.
Read more >Upgrading to OkHttp 4 - Square Open Source
The okhttp3.internal package is not a published API and we change it frequently without warning. Depending on code in this package is bad...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem was not related to the okhttp library. The Logcat lies sometimes 😃
I have
multiDexEnabled true
in my build.gradle file. But My Application class was not extendingMultiDexApplication
. Extending my class withMultiDexApplication
fixed the Issuethanks so much