Guilherme Delgado
Exception in thread “main” java.lang.NoClassDefFoundError: java/net/http/HttpClient$Version
ktor.HttpClient
actual fun platformModule() = module { single<HttpClient> { HttpClient(Java.create()) } } object HelperTest : KoinComponent { val httpClient = get<HttpClient>() } LaunchedEffect(Unit) { DependencyInjection.initKoin() println("${HelperTest.httpClient}") // BOOOM! }
modules("<http://java.net|java.net>.http")
A modern programming language that makes developers happier.