joelkanyi / kompose-country-code-picker

Kompose Country Code Picker is a Jetpack Compose library based on Material 3 (M3) that provides a country code picker for Android apps.
https://joelkanyi.github.io/kompose-country-code-picker/
Apache License 2.0
120 stars 13 forks source link

Gradle Task Failure #11

Closed Tonnie-Dev closed 8 months ago

Tonnie-Dev commented 9 months ago

Hi Joel,

I am now trying to use GitHub Actions to automate app upload to Google Play Store.

However, I am getting the below error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mapReleaseSourceSetPaths'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
   > Could not find com.github.JoelKanyi:KomposeCountryCodePicker:1.0.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/JoelKanyi/KomposeCountryCodePicker/1.0.3/KomposeCountryCodePicker-1.0.3.pom
       - https://repo.maven.apache.org/maven2/com/github/JoelKanyi/KomposeCountryCodePicker/1.0.3/KomposeCountryCodePicker-1.0.3.pom
       - https://jitpack.io/com/github/JoelKanyi/KomposeCountryCodePicker/1.0.3/KomposeCountryCodePicker-1.0.3.pom
     Required by:
         project :app
         project :app > project :feature:validator

My app is a multi-modular app.

I have set this repositories.

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }

}

And jitpack

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
           setUrl("https://jitpack.io")
        }
    }
}

What could I be missing

joelkanyi commented 9 months ago

I had some issues with jitpack and version 1.0.3 of the library, can you try version 1.0.6 and let me know how it goes

Tonnie-Dev commented 8 months ago

Thanks Joel, as recommended I updated KomposePicker to v1.0.6 and the issue went away. Thanks for looking into this for me. Cheers

joelkanyi commented 8 months ago

Closing this