Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
98 views
in Technique[技术] by (71.8m points)

android - Gradle doesn't look for dependency in the right way

I'm trying to add moko a dependency to a kotlin multiplataform on gradle.

org.gradle.internal.resolve.ArtifactNotFoundException: Could not find mvvm-livedata-0.9.1-samplessources.jar (dev.icerock.moko:mvvm-livedata:0.9.1). Searched in the following locations: https://dl.bintray.com/icerockdev/moko/dev/icerock/moko/mvvm-livedata/0.9.1/mvvm-livedata-0.9.1-samplessources.jar

it looks like the "-samplessources" part of the link shouldn't be there, but a don't know how to remove it.

enter image description here

enter image description here

enter image description here

question from:https://stackoverflow.com/questions/65892546/gradle-doesnt-look-for-dependency-in-the-right-way

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I solved deleting jvm target from gradle, looks like moko library not support jvm yet.

versions: kotlin 1.4.21 moko-mvvm-*: 0.9.1


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...