Missing package kotlinx.coroutines.experimental.android
See original GitHub issueI 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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
Are you using Anko? It might be pulled in transitively.
On Fri, Feb 16, 2018 at 5:36 PM shinayser notifications@github.com wrote:
Yes,
kotlinx-coroutines-android
.https://github.com/Kotlin/kotlinx.coroutines/blob/master/ui/kotlinx-coroutines-android/README.md