A
A
Andrey2018-10-03 16:20:45
Android
Andrey, 2018-10-03 16:20:45

Does mapkit:3.0.0 support API Level 28?

The project uses mapkit:3.0.0
Before switching to targetSdkVersion=28, maps worked fine. After - an empty grid is displayed and the following errors are thrown in LogCat:

E/yandex.maps: Certificate is not valid: Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is used
E/yandex.maps: yandex::maps::runtime::network::spdylay: :Connector::connect: Could not connect to 87.250.250.139:443, reason: certificate verify failed

Basic info from build.gradle:

compileSdkVersion 28
buildToolsVersion '28.0.3'
...
minSdkVersion 16
targetSdkVersion 28

gradle.properties: android.enableD8=true
There is a suspicion that this is due to the fact that Android P uses TLS by default, but this suspicion does not make it easier :)
ps api_key is normal, it has been activated for a long time. If you roll back targetSdkVersion to 27 (well, all related libraries), then everything works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-03-11
@kozinakoff

Answer here: https://developer.android.com/training/articles/se...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question