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 error: gradle unable to pull .pom /.jar file from mavenCenter #239

Open
bbl-jcastaneda opened this issue Aug 21, 2024 · 9 comments
Open

Comments

@bbl-jcastaneda
Copy link

It seems as if the .pom and .jar files have been removed from all popular repositories. anybody knows from where I can pull it now? The error I get is below.

Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/commit451/PhotoView/1.2.4/PhotoView-1.2.4.pom
- https://repo.maven.apache.org/maven2/com/commit451/PhotoView/1.2.4/PhotoView-1.2.4.pom
- file:/builds/BelizeBankLimited/mobilebanking/android/capacitor-cordova-android-plugins/src/main/libs/PhotoView-1.2.4.jar
- file:/builds/BelizeBankLimited/mobilebanking/android/capacitor-cordova-android-plugins/src/main/libs/PhotoView.jar
- file:/builds/BelizeBankLimited/mobilebanking/android/app/libs/PhotoView-1.2.4.jar
- file:/builds/BelizeBankLimited/mobilebanking/android/app/libs/PhotoView.jar
- https://jcenter.bintray.com/com/commit451/PhotoView/1.2.4/PhotoView-1.2.4.pom
- file:/builds/BelizeBankLimited/mobilebanking/android/app/src/main/aar/PhotoView-1.2.4.jar
- file:/builds/BelizeBankLimited/mobilebanking/android/app/src/main/aar/PhotoView.jar

@tamsel12
Copy link

Yes , We have the same problem from yesterday, We want to move our build to stores today itself. So Please let us know any solutions

@acasellasnecsia
Copy link

acasellasnecsia commented Aug 22, 2024

@tamsel12 @bbl-jcastaneda

I tried to configure Gradle to look for and use a local .aar file instead of downloading it from a repository and it worked for me.

Place the PhotoView-1.2.4.aar file in android/app/libs (create new folder).

Then, modify the build.gradle file (XXX-photoviewer.gradle) of the module:

repositories {
jcenter()
flatDir {
dirs 'libs'
}

}

dependencies {
implementation(name: 'PhotoView-1.2.4', ext: 'aar')
implementation 'com.squareup.picasso:picasso:2.71828'
}

Sync with Gradle and compile. It worked for me!

Hope this helps!

@bbl-jcastaneda
Copy link
Author

@acasellasnecsia

Hi, I also had that as an alternative, but I was unable to locate the .aar file. Would you be able to share how you got that file or how I can generate it by chance?

Thanks!

@acasellasnecsia acasellasnecsia mentioned this issue Aug 23, 2024
@acasellasnecsia
Copy link

Here is the link: https://repo1.maven.org/maven2/com/github/chrisbanes/photoview/library/1.2.4/library-1.2.4.aar.

Hope this helps @bbl-jcastaneda @tamsel12

@tamsel12
Copy link

Yes, After upgrading this we can able to build the application, but photo is not opening. photoviewer.show not working @acasellasnecsia

@acasellasnecsia
Copy link

@tamsel12 It's not quite like that, you need to make several calls for the photo to open. I finally gave up on using the plugin and started doing it manually.

@tamsel12
Copy link

tamsel12 commented Aug 24, 2024

Thiis update works fine in capacitor. But in cordova , photo is not getting opened.

@lmarcelocc
Copy link

I'm using [email protected] and with the following patch I was able to compile again and everything is working as before.
com-sarriaroman-photoviewer+1.3.0.patch

@Esom
Copy link

Esom commented Nov 14, 2024

repositories {
jcenter()
flatDir { dirs 'libs' }
}

Hi

lmarcelocc

You saved me , thanks

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

5 participants