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)
Hi AruLNadhaN,
I am facing same problem. Please let me know, how you solve this issue.
Thanks
Just run mvn compile to cause generated sources to be generated.
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
@AruLNadhaN , Good锛乀hanks !
@AruLNadhaN , big thanks!
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
You saved my day. Thanks so much.
How do you know that?
HTTP FAILED: javax.net.ssl.SSLException: Connection closed by peer
pre lollipop Error
how to fix ?
@AruLNadhaN thank you so much bro :) you saved me after 2 days of badluck..
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
this can be ok@AruLNadhaN
thanks so much
Most helpful comment
The problem was not related to the okhttp library. The Logcat lies sometimes :)
I have
multiDexEnabled truein my build.gradle file. But My Application class was not extendingMultiDexApplication. Extending my class withMultiDexApplicationfixed the Issue