question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Android JetPack

See original GitHub issue

The kotlinx-coroutines-android package is not compatible with android JetPack. See #366 .

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
mateot1commented, Aug 17, 2018

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 cast UI to CoroutineContext it becomes Cannot 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.

6reactions
NamtarRcommented, Aug 20, 2018

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 and UI 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found