android-studiogradlebuild.gradlebintrayjcenter

The jCenter & Bintray is Shutting Down. Now What? How to resolve that If third party library used?


The jCenter & Bintray is Shutting Down. So how we can resolve this and what will do if third party libraries are used in project.? Please help me out. Thanks in advance.


Solution

  • In all of your build.gradle files replace jcenter() by mavenCentral() (or just remove it if mavenCentral is already set).

    If you still have a dependency that need jcenter() (with this type of error: Could not find com.jeroenmols:mylibrary:1.0.0.) you can restrict the usage of jCenter to only this dependency:

    jcenter() {
        content {
            includeModule("com.jeroenmols", "mylibrary")
        }
    }
    

    JCenter will allow to download dependencies until February 1, 2022, so until then you can contact the developers of the missing library and ask them to migrate away from jCenter.

    Source and more details

    EDIT: JFrog updated his announce that they will keep jcenter as a read-only repository indefinitely. So you should be able to keep it as a reliable source for artifact if you still have dependencies from jCenter.