flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

Moving out of JCenter/Bintray

Open duduBaiao opened this issue 5 years ago • 5 comments

Hi y'all,

Don't you plan to move out from JCenter/Bintray?

https://www.jfrog.com/confluence/display/JFROG/JFrog+Bintray+Migration+Guide

Today, I am unable to build my app because the "location" plugin (4.3.0) still relies on a dependency hosted on bintray.

[+20614 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[        ] Could not determine the dependencies of task ':app:compileDevDebugJavaWithJavac'.
[        ] > Could not resolve all task dependencies for configuration ':app:devDebugCompileClasspath'.
[        ]    > Could not resolve com.google.android.gms:play-services-location:16.+.
[        ]      Required by:
[        ]          project :app > project :location
[        ]       > Failed to list versions for com.google.android.gms:play-services-location.
[        ]          > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml.
[        ]             > Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'.
[        ]                > Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'. Received status code 403 from server: Forbidden
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[        ] * Get more help at https://help.gradle.org
[        ] BUILD FAILED in 23s
[ +439 ms] Exception: Gradle task assembleDevDebug failed with exit code 1

It was working fine until yesterday.

duduBaiao avatar Jul 05 '21 12:07 duduBaiao

Hi, I had the same issue. Does anyone know any workaround on this?

Could not determine the dependencies of task ':app:preDebugBuild'. Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve com.google.android.gms:play-services-location:16.+. Required by: project :app > project :location

datttran avatar Jul 05 '21 22:07 datttran

@datttran Since we couldn't wait, the workaround was to use another plugin:

https://pub.dev/packages/geolocator

duduBaiao avatar Jul 05 '21 22:07 duduBaiao

https://stackoverflow.com/questions/66641552/could-not-resolve-com-google-android-gmsplay-services-location16

replacing Jcenter() with mavenCentral() works for me.

repositories { google() mavenCentral() // Add this jcenter() // remove this
}

willbryant avatar Jul 06 '21 01:07 willbryant

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 19:04 stale[bot]

still having this issue now, replaced jcenter with mavenCentral but no difference

dsgriffin avatar May 04 '22 18:05 dsgriffin