Comments (3)
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.
I have the same problem((
from kotlinx-datetime.
@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)
- Is there a recommendation for how to use the various type with hibernate in a Spring Boot Project? HOT 1
- Consider removing `String.toLocalDate()`, `String.toInstant()`, etc. HOT 1
- Not compliant with ISO-8601 HOT 1
- GMT HOT 1
- API reference improvements HOT 1
- Consider adding parsing and formatting support for `kotlin.time.Duration`
- Provide custom formats for `DateTimePeriod`
- Introduce serializers corresponding to custom formats HOT 3
- Fix the ISO serializers omitting seconds when zero and emitting fractional parts in groups of three signs HOT 4
- Locale-aware formatting (but not parsing)
- Publish the design documents for datetime formats
- Update Kotlin version HOT 3
- ABI incompatible change on `kotlinx.datetime/LocalDateTime.Companion.parse` function in 0.6.0 release HOT 2
- Failed requirement on strange time zone HOT 1
- Potential improvements and input preservation in parsing and formatting error messages HOT 1
- Feature: building instant from DateTimeComponents HOT 8
- Feature: optional padding HOT 3
- InstantRange HOT 1
- Instant.parse(..) inconsistent between jvm and ios targets HOT 2
- Consider removing `Clock.asTimeSource` HOT 10
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-datetime.