Okhttp3.CertificatePinner在Android 4中的错误刚发布APK

时间:2019-09-08 05:56:51

标签: release okhttp android-4.4-kitkat

仅发布版本和以下版本的android5应用在以下行崩溃了:

    OkHttpClient.Builder httpClient = new OkHttpClient().newBuilder();

错误是:

    E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: java.util.Objects
    at okhttp3.CertificatePinner.withCertificateChainCleaner(CertificatePinner.java:231)
    at okhttp3.OkHttpClient.<init>(OkHttpClient.java:238)
    at okhttp3.OkHttpClient.<init>(OkHttpClient.java:202)

0 个答案:

没有答案