Exception "Module with the Main dispatcher is missing." in release APK only
I'm using Kotlin 1.3 EAP and kotlinx-coroutines-android:1.0.0-RC1 in my Android project. My development build succeeds and the app runs fine. However, when I Generate Signed APK, the app still builds and runs, but then crashes with
java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android'
Since the dev build runs fine, clearly there's no omission in the gradle files. I have these settings...