-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IllegalStateException: Module with the Main dispatcher is missing #799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
UPD: We also use jetifier processor:
Newer version (1.0.0-beta02) is not compatible with databinding. |
Uncomment the last two lines in your sample's proguard-rules.pro |
I enabled R8 and it is the problem. Only proguard no problem. coroutines version 1.0.1 |
I has same issue and fixed it by adding options from coroutines.pro to proguard. Hope it helps somebody. |
@evgentset thanks, worked for me. coroutines version 1.0.1 |
Seconding @evgentset's fix! Worked for me on coroutines 1.1.1 |
I have the same issue. but the link is not available now. Could @evgentset provide again? please |
coroutines.pro @dendrocyte a copy from @evgentset |
@dendrocyte if you are having options for Kotlin in build.gradle packageOptions you can remove them. It will work again without need adding the proguard rule. In my case, I could export file APK but it had the RunTimeException when opening the app so I removed all packageOptions for kotlin and it worked fine with Kotlin 1.3.31 and coroutine 1.2.1 |
In our case, we put |
@endru-kargo I will try your solution later. thank you!!! |
Did it help? |
my client phone are Samsung and Sharp which are hit this error. |
Correcting the git link 'coroutines.pro'. |
For me updating Koltin to |
It was also discussed in issue #1532. Turning kotlin [1.3.50 -> 1.3.61], coroutines [1.3.1 -> 1.3.3] did the work for me. |
Our user with Xiaomi Redmi Note 4 device (Android 7.1.2) suddenly started to experience crash that had to be fixed with #657.
We're unable to reproduce it on our side. Here is reproducer app with the same lib dependencies as our main application: https://www.dropbox.com/s/eay696h9qmxjl5e/sample.zip?dl=1
AndroidX AppCompat: 1.0.0
Kotlin: 1.3.0
Coroutines: 1.0.0
Gradle wrapper: 4.10.2-bin
The text was updated successfully, but these errors were encountered: