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.

Missing package kotlinx.coroutines.experimental.android

See original GitHub issue

I just create a new project and added this to the gradle file:

compile org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.2

The “launch” methods is working fine but I cannot do:

launch(UI) {    }

(it cannot find the “UI” val)

This was working on another project until I tried to remove this compile from my gradle and added it back. After that Android Studio is not able to find the “kotlinx.coroutines.experimental.android” package (specificaly the “android” part). Am I missing something?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JakeWhartoncommented, Feb 16, 2018

Are you using Anko? It might be pulled in transitively.

On Fri, Feb 16, 2018 at 5:36 PM shinayser notifications@github.com wrote:

Weird, I am looking to my other project’s code and its not added on the gradle file, only the core one. o.O But anyways, I have added this to my gradle file:

compile “org.jetbrains.kotlinx:kotlinx-coroutines-android:0.22.2”

Now it is working. Thank you @JakeWharton https://github.com/jakewharton .

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Kotlin/kotlinx.coroutines/issues/248#issuecomment-366378770, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEaXg0yEb2aaHGnvi6joKSPGHM2yJks5tVgLxgaJpZM4SJA2E .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module with Main dispatcher is missing - Stack Overflow
My setup is kotlinx-coroutines-android:1.3.9 , no kotlinx-coroutines-core (I removed it as it turned out to be unnecessary), Kotlin 1.3.72, ...
Read more >
Android Jetifier: Cannot access class 'Lkotlinx.coroutines ...
Tried clearing all caches, rebooting, etc. 'HandlerContext' is not found anywhere in my code. org.gradle.api.tasks.TaskExecutionException: Execution failed for ...
Read more >
Change log for kotlinx.coroutines
Version 1.3.7. Fixed problem that triggered Android Lint failure (#2004). New Flow.cancellable() operator for cooperative cancellation (#2026) ...
Read more >
Package kotlinx.coroutines
Defines a scope for new coroutines. Every coroutine builder (like launch, async, etc.) is an extension on CoroutineScope and inherits its coroutineContext to ......
Read more >
Use Kotlin Coroutines in your Android App - Android Developers
Android Studio 4.1 (the codelab may work with other versions, but some things might be missing or look different). If you run into...
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