Okhttp: java.lang.NoClassDefFoundError: okhttp3/internal/platform/Platform

Created on 22 Nov 2019  ·  3Comments  ·  Source: square/okhttp

The version of OkHttp I am using is 3.14.4. Some exceptions occur on some Android 4.4 models.

java.lang.NoClassDefFoundError: okhttp3/internal/platform/Platform
    at okhttp3.internal.tls.CertificateChainCleaner.get(CertificateChainCleaner.java:41)
    at okhttp3.OkHttpClient$Builder.sslSocketFactory(OkHttpClient.java:782)
bug

Most helpful comment

All 3 comments

You will need to use 3.12 branch for these devices.

I want to know what is the root cause of this problem. Thank you!

Was this page helpful?
0 / 5 - 0 ratings