Support for Android JetPack
See original GitHub issueThe kotlinx-coroutines-android
package is not compatible with android JetPack.
See #366 .
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Android Jetpack Dev Resources
Jetpack is a suite of libraries to help developers follow best practices, reduce boilerplate code, and write code that works consistently across Android...
Read more >Android Jetpack
Jetpack is a suite of libraries, tools, and guidance to help developers write high-quality apps easier. These components help you follow best practices,...
Read more >What exactly is Jetpack?
Android OS bundled packages and unbundled packages like support library and architecture components also starts with android.*. To make the packaging much more ......
Read more >What's new in Jetpack
Android Jetpack is a suite of libraries, tools, and guidance to help developers follow best practices, reduce boilerplate code, ...
Read more >Jetpack Architecture Components in Android
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also just ran into this. The compile error I get is
Type mismatch: inferred type is HandlerContext; but CoroutineContext was expected
and then if I castUI
toCoroutineContext
it becomesCannot access class 'Lkotlinx.coroutines.experimental.android.HandlerContext;'. Check your module classpath for missing or conflicting dependencies
. Unfortunately, I don’t think disabling jetifier is an option for me.Same problem here. Disabling Jetifier would break many other things so it is not an option for me too. The only way I managed to get it to work is copying
kotlinx.coroutines.experimental.android.HandlerContext
andUI
to my own project. This is obviously not a proper way of fixing this but at least I can continue developing and preparing my app for the future with AndroidX until it all works together without any hacks.