Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.org.conscrypt.OpenSSLRSAPrivateCrtKey" on path: DexPathList-ThrowExceptions

Exception or error:

I got this problem recently. I am thinking that this problem might be caused by multiDex. Please help me to solve the problem.

This problem got a weird behaviour, it only cause app crash start from second time onward. Meaning there is no crash if I first open up the app, but after that, it will just crash when I trigger some actions.

java.lang.Error: java.lang.ClassNotFoundException: com.google.android.gms.org.conscrypt.OpenSSLRSAPrivateCrtKey
at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.invokeTokenRequest(WLAuthorizationManagerInternal.java:1143)
at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.onAuthorizationSuccess(WLAuthorizationManagerInternal.java:1421)
at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.access$500(WLAuthorizationManagerInternal.java:66)
at com.worklight.wlclient.auth.WLAuthorizationManagerInternal$WLAuthorizationRequestListener.onSuccess(WLAuthorizationManagerInternal.java:1438)
at com.worklight.wlclient.auth.WLAuthorizationManagerInternal$8.onSuccess(WLAuthorizationManagerInternal.java:1345)
at com.worklight.wlclient.WLRequest.processSuccessResponse(WLRequest.java:707)
at com.worklight.wlclient.WLRequest.requestFinished(WLRequest.java:276)
at com.worklight.wlclient.WLRequestSender.run(WLRequestSender.java:54)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.ClassNotFoundException: com.google.android.gms.org.conscrypt.OpenSSLRSAPrivateCrtKey
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:628)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1615)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1520)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1776)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2002)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1926)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1803)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
at com.worklight.common.security.WLCertManager.getKeyPair(WLCertManager.java:390)
at com.worklight.common.security.WLOAuthCertManager.getKeyPair(WLOAuthCertManager.java:85)
at com.worklight.common.security.WLOAuthCertManager.signJWS(WLOAuthCertManager.java:89)
at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.invokeTokenRequest(WLAuthorizationManagerInternal.java:1118)

Additional info: I just found out that this error occured inside okhttp3 library.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *