question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NoClassDefFoundError: okhttp3.internal.Util on Android 4.4 Version?

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
AruLNadhaNcommented, Mar 2, 2016

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 extending MultiDexApplication. Extending my class with MultiDexApplication fixed the Issue

0reactions
kinpowoocommented, Apr 2, 2018

thanks so much

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found