Kotlin / kotlinx.coroutines

Library support for Kotlin coroutines
Apache License 2.0
13.08k stars 1.85k forks source link

0.25 breaks compilation #517

Closed SUPERCILEX closed 6 years ago

SUPERCILEX commented 6 years ago

Somehow, coroutines are being double packaged:

Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: kotlinx.coroutines.experimental.InvokeOnCancellation

Project: https://github.com/SUPERCILEX/Robot-Scouter/tree/0b661fa28ada67983c6155730962be5f0e6d59ff Setup: ./gradlew setup Upgrade the Coroutines version here: https://github.com/SUPERCILEX/Robot-Scouter/blob/0b661fa28ada67983c6155730962be5f0e6d59ff/buildSrc/src/main/kotlin/Config.kt#L25

elizarov commented 6 years ago

This seems to be caused by the fact that Google tools do not support JEP 238 multi-release jars. I'm closing at a duplicate of #510. See it for tools versions that should fix the problem.

SUPERCILEX commented 6 years ago

Gotya, thanks!