Код: Выделить всё
javax.net.ssl.SSLHandshakeException: Handshake failed
...
SSL handshake aborted: ssl=0x7b0998168998: Failure in SSL library, usually a protocol error
error:1000042e:SSL routines:OPENSSL_internal:TLSV1_ALERT_PROTOCOL_VERSION (third_party/openssl/boringssl/src/ssl/tls_record.cc:592 0x7b09881aecf0:0x00000003)
Вот фрагмент моего кода:
Код: Выделить всё
val client = OkHttpClient().newBuilder()
.connectionSpecs(listOf(ConnectionSpec.MODERN_TLS, ConnectionSpec.RESTRICTED_TLS))
.build()
val imageLoader = ImageLoader.Builder(LocalContext.current)
.components {
add(
OkHttpNetworkFetcherFactory {
client
}
)
}
.build()
val request = ImageRequest.Builder(LocalContext.current)
.data("https://info.defcon.org/blobs/v_aerospace.png")
.build()
AsyncImage(
model = request,
contentDescription = "logo",
modifier = Modifier
.background(Color.White)
.fillMaxSize(),
imageLoader = imageLoader,
)
Будем благодарны за любую помощь или предложения.
Подробнее здесь: https://stackoverflow.com/questions/787 ... -in-kotlin