Skip to content
Advertisement

Tag: kotlin-multiplatform-mobile

Cometd with Android: java.lang.RuntimeException: Could not find an implementation class

I am trying to implement a cometD client in a Kotlin Multiplatform App for android at the moment. Here are my android dependencies My code (CometdConnection.kt) The app gets compiled but crashes when the initialization fails with an error Answer You don’t need dependency org.cometd.java:cometd-java-client-websocket-javax:7.0.5 because you already have org.cometd.java:cometd-java-client-websocket-okhttp:7.0.5. Remove it and the error should go away.

Advertisement