How to resolve D8 warning: D8: Type `org.conscrypt.Conscrypt` was not found

smoothdvd picture smoothdvd · Apr 17, 2018 · Viewed 16.7k times · Source
/Volumes/SSD/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.10.0/7ef0f1d95bf4c0b3ba30bbae25e0e562b05cf75e/okhttp-3.10.0.jar: D8: Type `org.conscrypt.Conscrypt` was not found, it is required for default or static interface methods desugaring of `okhttp3.internal.platform.Platform okhttp3.internal.platform.ConscryptPlatform.buildIfSupported()`

Answer

Ognyan picture Ognyan · Apr 18, 2019

I was able to solve the problem with adding:

-dontwarn okhttp3.internal.platform.ConscryptPlatform

to the proguard-rules.pro file.