You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample app is using RESTMockServer.getSSLSocketFactory() and RESTMockServer.getTrustManager() in Retrofit OkHttp and is not working with it, returning the following error:
12-18 18:59:12.629 2471-3623/? E/NetdConnector: RCV <- {600 Iface linkstate wlan0 up} 12-18 18:59:32.638 2471-3623/? E/NetdConnector: RCV <- {600 Iface linkstate wlan0 up} 12-18 18:59:38.517 18827-18896/br.com.ioasys.fdc E/AndroidRuntime: FATAL EXCEPTION: OkHttp Http2Connection Process: br.com.ioasys.fdc, PID: 18827 java.lang.NoSuchMethodError: No virtual method getRequestHeaders()Ljava/util/List; in class Lokhttp3/internal/http2/Http2Stream; or its super classes (declaration of 'okhttp3.internal.http2.Http2Stream' appears in /data/app/br.com.ioasys.fdc-2/base.apk:classes3.dex) at okhttp3.mockwebserver.MockWebServer$Http2SocketHandler.readRequest(MockWebServer.java:937) at okhttp3.mockwebserver.MockWebServer$Http2SocketHandler.onStream(MockWebServer.java:910) at okhttp3.internal.http2.Http2Connection$ReaderRunnable$1.execute(Http2Connection.java:674) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) 12-18 18:59:38.625 2471-3672/? E/ActivityManager: Will notifyMovedToHome from moveHomeStack 12-18 18:59:38.625 2471-3672/? E/ActivityManager: Broadcasting Moved to Home screen Intent 12-18 18:59:52.654 2471-3623/? E/NetdConnector: RCV <- {600 Iface linkstate wlan0 up} 12-18 19:00:12.375 2471-3627/? E/native: do suspend false
If I remove these methods related to SSL, it throws me an error related to SSL.
Retrofit version: 2.5.0
OkHttp version: 3.12.0
The text was updated successfully, but these errors were encountered:
this is most likely caused by discrepancies of okhttp3 and mockwebserver versions, can you try adding this to your app's build.gradle file to make sure all okhttp dependencies share the same version:
configurations.all {
resolutionStrategy {
force "com.squareup.okhttp3:okhttp:3.12.1"
force "com.squareup.okhttp3:okhttp-tls:3.12.1"
force "com.squareup.okhttp3:mockwebserver:3.12.1"
force "com.squareup.okhttp3:logging-interceptor:3.12.1"
}
}
The sample app is using RESTMockServer.getSSLSocketFactory() and RESTMockServer.getTrustManager() in Retrofit OkHttp and is not working with it, returning the following error:
12-18 18:59:12.629 2471-3623/? E/NetdConnector: RCV <- {600 Iface linkstate wlan0 up} 12-18 18:59:32.638 2471-3623/? E/NetdConnector: RCV <- {600 Iface linkstate wlan0 up} 12-18 18:59:38.517 18827-18896/br.com.ioasys.fdc E/AndroidRuntime: FATAL EXCEPTION: OkHttp Http2Connection Process: br.com.ioasys.fdc, PID: 18827 java.lang.NoSuchMethodError: No virtual method getRequestHeaders()Ljava/util/List; in class Lokhttp3/internal/http2/Http2Stream; or its super classes (declaration of 'okhttp3.internal.http2.Http2Stream' appears in /data/app/br.com.ioasys.fdc-2/base.apk:classes3.dex) at okhttp3.mockwebserver.MockWebServer$Http2SocketHandler.readRequest(MockWebServer.java:937) at okhttp3.mockwebserver.MockWebServer$Http2SocketHandler.onStream(MockWebServer.java:910) at okhttp3.internal.http2.Http2Connection$ReaderRunnable$1.execute(Http2Connection.java:674) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) 12-18 18:59:38.625 2471-3672/? E/ActivityManager: Will notifyMovedToHome from moveHomeStack 12-18 18:59:38.625 2471-3672/? E/ActivityManager: Broadcasting Moved to Home screen Intent 12-18 18:59:52.654 2471-3623/? E/NetdConnector: RCV <- {600 Iface linkstate wlan0 up} 12-18 19:00:12.375 2471-3627/? E/native: do suspend false
If I remove these methods related to SSL, it throws me an error related to SSL.
Retrofit version: 2.5.0
OkHttp version: 3.12.0
The text was updated successfully, but these errors were encountered: