Could not find org.jetbrains.kotlinx:kotlinx-datetime:0.1.0 (in default repositories)
See original GitHub issueI 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5
Top 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 >
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 Free
Top 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
@NikolaGrujic91 the logs indicate that the
androidApp
module is unable to find the binaries. You can try addingmaven(url = "https://kotlin.bintray.com/kotlinx/")
into yourandroidApp:gradle
repositories, then it should work.I am experiencing the same issue by following instructions from the README. Even the workaround proposed by @ln-12 is not working for me