NavigationManager.cancelNavigation() error

4 posts / 0 new
Last post
mprzypasniak
NavigationManager.cancelNavigation() error

Hello,

I'm using Android Navigation SDK in my app written in Kotlin 1.5, and I've came into problem - when I'm trying to cancel the navigation, my application throws exception:

java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/coroutines/experimental/jvm/internal/CoroutineImpl;
at com.mapquest.navigation.internal.observer.Observer.<init>(Observer.kt:37)
at com.mapquest.navigation.internal.NavigationManagerImpl.<init>(NavigationManagerImpl.java:209)
at com.mapquest.navigation.internal.NavigationManagerImpl.<init>(NavigationManagerImpl.java:190)
at com.mapquest.navigation.internal.NavigationManagerImpl.<init>(NavigationManagerImpl.java:175)
at com.mapquest.navigation.NavigationManager$Builder.build(NavigationManager.java:82)

Is it a problem with incompatible Kotlin version, or am I missing something?


MapQBrianCoakley
Does this stop the
Does this stop the application or is it something you've noticed in the log?

mprzypasniak
It crashes the activity and

It crashes the activity and gives me "Application keeps crashing" prompt. From what I understand, SDK requires CoroutineImpl class but cannot find it since it's in different dependency in newer version of Kotlin. Does that mean I can't use it with 1.5 version and have to downgrade, or is there something I am missing?
 


MapQBrianCoakley
If it works with another
If it works with another version, go with that. The SDK has not been tested with newer versions.