Comments (11)
Fixed now. The guide now includes the notice about setup in the beginning: https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md
from kotlinx.coroutines.
Can you, please, give more details on your project setup and on the error
from kotlinx.coroutines.
Sorry for bothering you. It was my studio lag. I did invalidate and restart and issue disappears.
But now I have another issue. I have warning popup after each gradle sync. Even after I have configured app module.
How can I rid of it?
from kotlinx.coroutines.
Can you, please, file a bug about "Configure Kotlin" to http://kotl.in/issue with details on your project setup (what versions of graddle, Android studio and kotlin plugin you are using and how your graddle project is set up).
from kotlinx.coroutines.
Done. With images and gradle files there
from kotlinx.coroutines.
I'm having the same problem.
Not using Gradle, just started a basic Kotlin project. Here's a screen showing my setup and the errors:
Haven't used co-routines before in Kotlin, but just trying out this first example is giving me trouble. As you can see, I'm using the recently released 1.1.
from kotlinx.coroutines.
@lostpebble Have you added a coroutines dependency? I haven't seen any gradle files. Kotlin projects don't need them?(I have used kotlin only for android projects)
from kotlinx.coroutines.
Well, I'm importing the coroutines package from Kotlin at the top there. Thought that stuff would all come standard with the 1.1 release and updating the package. The package itself is there but the launch
function doesn't seem to be under kotlin.coroutines.experimental
I'll have to try with Gradle next and see if it's somehow different. Which is the specific dependency I need for the coroutines?
from kotlinx.coroutines.
Check README: https://github.com/Kotlin/kotlinx.coroutines
from kotlinx.coroutines.
Ahh, okay all working now. Sorry, just came from another site straight to the guide- noticed that launch
was in the kotlinx.coroutines.experimental
package, which comes with 1.1 and was wondering why it wasn't resolving.
Perhaps indicate in the guide that the kotlinx-coroutines-core
module is needed on top of the regular Kotlin coroutines module.
from kotlinx.coroutines.
Oh! It's really cool
from kotlinx.coroutines.
Related Issues (20)
- StateFlow, different values, compareAndSet return false HOT 3
- 1.9.0-RC test task:compileDemoDebugUnitTestKotlin error Suspension functions can only be called within coroutine body. HOT 1
- Improve invokeOnCompletion and invokeOnCancellation API HOT 1
- Mention `testScope.backgroundScope` in `UncompletedCoroutinesError`
- Allow `Dispatchers.Unconfined` to use the event loops as time sources
- Add optional support for Micrometer Context Propagation
- `withContext` may execute code in the wrong context if the `coroutineContext` misleads it HOT 3
- SharedFlow doesn't have same parameters as in constructor function HOT 2
- Consider deprecation cycle for `CoroutineDispatcher.invoke` HOT 6
- How to prevent a SharedFlow collect values when the activity resumes? HOT 1
- Consider discouraging `CoroutineStart.LAZY`
- Some problem about `addLast` in LockFreeTaskQueue HOT 1
- Maybe it's reasonable to recommend wrapping a `callbackFlow` initialization into `try`-`finally`? HOT 4
- Dispatcher failures may leave coroutines uncompleted HOT 1
- `DelayWithTimeoutDiagnostics` missing from R8 rules? HOT 3
- Introduce Flow.all/any/none operators HOT 3
- [WASM] JsException: Exception was thrown while running JavaScript code kotlinx.coroutines.error_$external_fun HOT 6
- Suppressed exceptions are lost during stacktrace recovery HOT 1
- `runBlocking` executes other tasks instead of its own HOT 1
- "Kotlin Compiler Error: NoClassDefFoundError for kotlin/reflect/full/KClasses during Gradle build" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlinx.coroutines.