aritraroy / PinLockView

A clean, minimal, highly customizable pin lock view for Android
Apache License 2.0
1.4k stars 258 forks source link

Failed to resolve: com.andrognito.pinlockview:pinlockview:2.1.0 This error I take #78

Open kariosnetwork opened 2 months ago

kariosnetwork commented 2 months ago

Could not resolve com.andrognito.pinlockview:pinlockview:2.1.0. This Details

safu2011 commented 1 month ago

same issue

Bieenn01 commented 1 month ago

is this fixed ?

generalmimon commented 3 weeks ago

According to https://mvnrepository.com/artifact/com.andrognito.pinlockview/pinlockview, the artifacts of this library were published in the JCenter repository, which has been recently shut down on August 15th, 2024 (2024-08-15): https://jfrog.com/blog/jcenter-sunset/

Some older articles like https://developer.android.com/build/jcenter-migration refer to the previous statement of JFrog from this article from 2021 claiming that they "will keep JCenter as a read-only repository indefinitely", but in July 2024 they changed their mind:

UPDATE 7/2/2024: After over three years of maintaining JCenter as a read-only repository for legacy Java packages, JFrog is moving forward with an official sunset of JCenter, and, in coordination with Maven Central, will begin automatically redirecting all JCenter requests to the Maven Central Repository. The first of several service brown-outs is scheduled for July 30th and will periodically continue until the final shutdown of JCenter on August 15th. For more details, please see JFrog’s official announcement.

If this project was still maintained, the solution to this would be to migrate to another package host such as Maven Central. This was already suggested in https://github.com/aritraroy/PinLockView/issues/74. However, since this project hasn't been updated since 2017 (see https://github.com/aritraroy/PinLockView/graphs/contributors), it seems very unlikely that this will happen.

Does anyone know of an alternative?

mesharkw commented 17 hours ago

We can try use it directly from git:

build.gradle(app) implementation 'com.github.aritraroy:PinLockView:master-SNAPSHOT'

and in build.gradle(project) maven { url 'https://jitpack.io' }

in

allprojects {
    repositories {
        jcenter()
        maven { url 'https://jitpack.io' }

    }
}

This worked fro me.