Code Monkey home page Code Monkey logo

Comments (3)

shpp-vsmaga avatar shpp-vsmaga commented on May 26, 2024 1

When I add the dependency to my KMM app, sync the project and run the app, I get the following error message:

Execution failed for task ':androidApp:checkXXXDebugAarMetadata'.
> Could not resolve all files for configuration ':androidApp:XXXDebugRuntimeClasspath'.
   > Could not find org.jetbrains.kotlinx:kotlinx-datetime:0.1.1.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.1/kotlinx-datetime-0.1.1.pom
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.1/kotlinx-datetime-0.1.1.pom
       - https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-datetime/0.1.1/kotlinx-datetime-0.1.1.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.1/kotlinx-datetime-0.1.1.pom
     Required by:
         project :androidApp > project :shared

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Fixed - you should add repository to all projects like:
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven("https://kotlin.bintray.com/kotlinx/")

from kotlinx-datetime.

shpp-vsmaga avatar shpp-vsmaga commented on May 26, 2024

I have the same problem((

from kotlinx-datetime.

dbikic avatar dbikic commented on May 26, 2024

@shpp-vsmaga awesome, thanks a lot, it solved my issue!

However, I think the setup guide in this repo should be changed. I'm following the official KMM sample app and there is no allprojects block in the root build.gradle file: https://github.com/Kotlin/kmm-sample/blob/master/build.gradle.kts

from kotlinx-datetime.

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.