icerockdev / moko-paging

Pagination logic in common code for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
59 stars 7 forks source link

ArtifactNotFoundException: Could not find paging-0.4.5-samplessources.jar #36

Closed Drjacky closed 3 years ago

Drjacky commented 3 years ago
Failed building KotlinMPPGradleModel
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find paging-0.4.5-samplessources.jar (dev.icerock.moko:paging:0.4.5).
Searched in the following locations:
    https://repo.maven.apache.org/maven2/dev/icerock/moko/paging/0.4.5/paging-0.4.5-samplessources.jar

My usage: shared module:

sourceSets {
        val commonMain by getting {
            dependencies {
                ...
                api("dev.icerock.moko:paging:$mokoPagingVersion")
            }
        }
Alex009 commented 3 years ago

hi! i think you have targets that not supported by paging lib. for example jvm. library support only android & ios targets. this comment can help you in this case - https://github.com/icerockdev/moko-resources/issues/133#issuecomment-740700058

Drjacky commented 3 years ago

@Alex009 That issue solved. I know this one is not related to the library itself but, it doesn't matter where I add the dependency(shared, android), the package cannot be recognized!

Adding here

Screen Shot 2021-05-23 at 12 32 12

Or here

Screen Shot 2021-05-23 at 12 32 33

Or here

Screen Shot 2021-05-23 at 12 32 49

It doesn't matter, the result is same:

Screen Shot 2021-05-23 at 12 31 59

An idea?! 🤔