I build a library using Kotkin 1.2 (experimental c...
# android
s
I build a library using Kotkin 1.2 (experimental coroutines). Now a android app built on Kotlin 1.3 can consume the library? if there is no public api exposing coroutines, but internally using Kotkin 1.2 (experimental coroutines) in library
I get this error :
java.lang.NoClassDefFoundError: Failed resolution of: Lkotlinx/coroutines/experimental/CommonPool;
s
Typically, what I've seen in libraries following a similar path, they currently support two versions of the library, one for consumers on Kotlin 1.2 and another for Kotlin 1.3. I don't believe it's possible to mix the two. Remember having the same issue (from the consumer side), and we weren't able to find a way around it other than waiting for the library to update.
We had the same error message as well, it wasn't able to resolve anything from kotlinx.coroutines.experimental.