MaterialFilePicker icon indicating copy to clipboard operation
MaterialFilePicker copied to clipboard

JCenter is at end of life

Open drmrbrewer opened this issue 4 years ago • 9 comments

From the docs we are required to use jcenter:

image

But there is now a lint warning saying that "Jcenter is at end of life", as noted here:

https://stackoverflow.com/q/66400264/4070848

As noted in this answer:

Developers who publish artifacts on JCenter should start migrating their packages to a new host, such as Maven Central.

drmrbrewer avatar May 04 '21 18:05 drmrbrewer

Would be highly appreciated if this would be done soonish

WarrenFaith avatar May 07 '21 13:05 WarrenFaith

I'm not being able to use version 1.8, as it seems to be removed from JCenter... And I can't update to version 1.9.1 due to the minApi required.

Could not HEAD 'http://dl.bintray.com/lukaville/maven/com/nbsp/library/1.8/library-1.8.pom'. Received status code 403 from server: Forbidden

JonathanNobrega avatar May 07 '21 14:05 JonathanNobrega

@JonathanNobrega jcenter is no more. They literally shut off this service with 1st of May 2021

WarrenFaith avatar May 07 '21 15:05 WarrenFaith

So, only version 1.9 and onwards are on Maven Central, and previous versions were on JCenter? Because Gradle is able to sync with version 1.9.1

JonathanNobrega avatar May 07 '21 15:05 JonathanNobrega

There is no version on mavencentral. That is why this issue exists...

WarrenFaith avatar May 07 '21 15:05 WarrenFaith

But I don't understand... I invalidated caches on AS, then synced Gradle again, and it worked on latest version (1.9.1), as it could download the library, but version 1.8 gives me a 403 Forbidden (because of JCenter shutdown). I thought that only the latest version was on Maven Central 😅

JonathanNobrega avatar May 07 '21 15:05 JonathanNobrega

The only solution for now would be to clone this repo and link it as a local dependency...

WarrenFaith avatar May 07 '21 15:05 WarrenFaith

You can use

              implementation 'com.github.nbsp-team:MaterialFilePicker:2a671641af

or for always latest version:

        implementation 'com.github.nbsp-team:MaterialFilePicker:-SNAPSHOT'

You can use any library on github as library within minutes (even your own project) with https://jitpack.io/

omkar-tenkale avatar Jun 17 '21 10:06 omkar-tenkale

Any alternative picker instead this one?

slavinsky-dev avatar Jul 25 '21 10:07 slavinsky-dev