Coder Social home page Coder Social logo

Comments (11)

elizarov avatar elizarov commented on September 23, 2024 1

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.

elizarov avatar elizarov commented on September 23, 2024

Can you, please, give more details on your project setup and on the error

from kotlinx.coroutines.

Skullper avatar Skullper commented on September 23, 2024

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.
screenshot from 2017-03-02 08-52-57
How can I rid of it?

from kotlinx.coroutines.

elizarov avatar elizarov commented on September 23, 2024

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.

Skullper avatar Skullper commented on September 23, 2024

Done. With images and gradle files there

from kotlinx.coroutines.

lostpebble avatar lostpebble commented on September 23, 2024

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:
coroutines_problem

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.

Skullper avatar Skullper commented on September 23, 2024

@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.

lostpebble avatar lostpebble commented on September 23, 2024

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.

Skullper avatar Skullper commented on September 23, 2024

Check README: https://github.com/Kotlin/kotlinx.coroutines

from kotlinx.coroutines.

lostpebble avatar lostpebble commented on September 23, 2024

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.

Skullper avatar Skullper commented on September 23, 2024

Oh! It's really cool

from kotlinx.coroutines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.