Closed phomotech closed 2 years ago
I have same issue with 1.5.1
It mind be related to the fact that such link doesn't exist. https://jitpack.io/com/github/blongho/worldCountryData/1.5.2/ shows that the proper place is https://jitpack.io/com/github/blongho/worldCountryData/1.5.2/worldCountryData-1.5.2-sources.jar But from some reason Gradle search for different place.
@EmiliaPoruszek @phomotech Have you tried using the latest version v1.5.3
in your module specific build.gradle
file? implementation 'com.github.blongho:worldCountryData:1.5.3'
Version v1.5.2
was never a full release. Also check that you're targeting the correct SDK versions (targetSdkVersion 31
) for the application.
Yes I was on latest version ...
Adding the below code to the setting grade and build Gradle solved my issue on the pipeline //App Level build.gradle
allprojects { repositories { //... maven { url 'https://www.jitpack.io' } // maven { url 'https://jitpack.io' } } }
//Setting,gradle dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) repositories { google() mavenCentral() jcenter() // Warning: this repository is going to shut down soon maven { url 'https://jitpack.io' } } }
@phomotech Feel free to close/delete the issue if your problem has been resolved.
The build on pipeline fails because of the below reason
Failed to transform worldCountryData-1.5.2.jar (com.github.blongho:worldCountryData:1.5.2) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.