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.

Could not find org.jetbrains.kotlinx:kotlinx-datetime:0.1.0 (in default repositories)

See original GitHub issue

I wanna run a Kotlin Multiplatform Mobile project using this library. After configuring the gradle script like shown in the screenshot, I get the following error:

Execution failed for task ':androidApp:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':androidApp:debugRuntimeClasspath'.
   > Could not find org.jetbrains.kotlinx:kotlinx-datetime:0.1.0.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom
       - https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-datetime/0.1.0/kotlinx-datetime-0.1.0.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

Only after adding the custom maven repo to the build gradle file inside the android sub project, the dependency is found. I don’t think that this is right.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
dogan-gulcan-zocdoccommented, Nov 11, 2020

@NikolaGrujic91 the logs indicate that the androidApp module is unable to find the binaries. You can try adding maven(url = "https://kotlin.bintray.com/kotlinx/") into your androidApp:gradle repositories, then it should work.

1reaction
NikolaGrujic91commented, Oct 24, 2020

I am experiencing the same issue by following instructions from the README. Even the workaround proposed by @ln-12 is not working for me

Screenshot 2020-10-24 at 08 18 23 Screenshot 2020-10-24 at 08 18 44

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not find org.jetbrains.kotlin:kotlin-gradle-plugins
There seems to be a typo in the build script: the correct name of the artifact is kotlin-gradle-plugin (without s ).
Read more >
"Could not resolve org.jetbrains.intellij.deps:asm-all" localhost
I'm upgrading " org.jetbrains.intellij. from 0.6.5 to latest 1.4.0 and ran into this problem. (0.6.5 worked fine)
Read more >
IntelliJ gets errors when trying to download artifacts from ...
Any ideas on why the following error happens? If I see a red underline for an JAR that didn't download, I search in...
Read more >
intellij.localPath specified still getting error 'Could not resolve ...
Since the host 'cache-redirector.jetbrains.com' is not accessible under firewall. I am getting error as below in restricted environment. Please ...
Read more >
IntelliJ's Maven plugin can't download sources for snapshot ...
Issue. IntelliJ's Maven plugin doesn't query the snapshot mirror repository when downloading sources for snapshot dependencies. It's instead querying the ...
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