Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on pipeline #38

Closed
phomotech opened this issue Apr 10, 2022 · 5 comments
Closed

Build fails on pipeline #38

phomotech opened this issue Apr 10, 2022 · 5 comments

Comments

@phomotech
Copy link

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}.
> Could not find worldCountryData-1.5.2.jar (com.github.blongho:worldCountryData:1.5.2).
Searched in the following locations:
https://jitpack.io/com/github/blongho/worldCountryData/1.5.2/worldCountryData-1.5.2.jar

@EmiliaPoruszek
Copy link

I have same issue with 1.5.1

@EmiliaPoruszek
Copy link

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.

@fatonhoti
Copy link
Contributor

fatonhoti commented Apr 12, 2022

@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.

@phomotech
Copy link
Author

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' }
}
}

@fatonhoti
Copy link
Contributor

@phomotech Feel free to close/delete the issue if your problem has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants