ktor
W/Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added
I/art: Rejecting re-init on previously-failed class java.lang.Class<io.ktor.client.engine.cio.CIOEngine$executeRequest$$inlined$with$lambda$1>
I/art: Rejecting re-init on previously-failed class java.lang.Class<io.ktor.client.engine.cio.CIOEngine$executeRequest$$inlined$with$lambda$1>
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.vastaus42.scaner, PID: 21019
java.lang.NoSuchMethodError: No static method getInstanceStrong()Ljava/security/SecureRandom; in class Ljava/security/SecureRandom; or its super classes (declaration of 'java.security.SecureRandom' appears in /system/framework/core-libart.jar)
at io.ktor.client.engine.cio.CIOEngineConfigKt.<clinit>(CIOEngineConfig.kt:9)
at io.ktor.client.engine.cio.CIOEngineConfigKt.access$getDEFAULT_RANDOM$p(CIOEngineConfig.kt:1)
at io.ktor.client.engine.cio.HttpsConfig.<init>(CIOEngineConfig.kt:29)
at io.ktor.client.engine.cio.CIOEngineConfig.<init>(CIOEngineConfig.kt:13)
at io.ktor.client.engine.cio.CIO.create(CIO.kt:14)
at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:28)
at io.ktor.client.HttpClientKt.HttpClient$default(HttpClient.kt:25)
at com.vastaus42.scaner.ServerApi.getToken(ServerApi.kt:23)
at com.vastaus42.scaner.LoginUI$$special$$inlined$button$lambda$1.doResume(LoginActivity.kt:56)
at com.vastaus42.scaner.LoginUI$$special$$inlined$button$lambda$1.invoke(LoginActivity.kt)
at com.vastaus42.scaner.LoginUI$$special$$inlined$button$lambda$1.invoke(LoginActivity.kt:22)
at org.jetbrains.anko.sdk27.coroutines.Sdk27CoroutinesListenersWithCoroutinesKt$onClick$1$1.doResume(ListenersWithCoroutines.kt:298)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)
at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:149)
at kotlinx.coroutines.experimental.DispatchedContinuation.run(Dispatched.kt:13)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:6046)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:840)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:730)
I/Process: Sending signal. PID: 21019 SIG: 9
Application terminated.
Вообще сообщение "не могу загрузить JDK7-классы" намекает, что копать надо в сторону версии рантайма. Или в сторону кросс-компиляции в .dex. Или в версию kotlin и требуемую поддержку JDK
а какая версия ктора? в 3 бете вроде убрали использование instanceStrong рандома
Обсуждают сегодня