MobileVisionBarcodeScanner icon indicating copy to clipboard operation
MobileVisionBarcodeScanner copied to clipboard

Rx permissions2 prevents building app when jcenter() is removed to add mavenCentral() repository

Open NicoEtche opened this issue 4 years ago • 1 comments

After removing jcenter() from build.gradle and replacing it with mavenCentral() im getting this warning in gradle sync:

Failed to resolve: com.tbruyelle.rxpermissions2:rxpermissions:0.9.1 Show in Project Structure dialog Affected Modules: app

Then if i run the app i get the next error:

Execution failed for task ':app:checkDevDebugAarMetadata'. > Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'. > Could not find com.tbruyelle.rxpermissions2:rxpermissions:0.9.1. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/tbruyelle/rxpermissions2/rxpermissions/0.9.1/rxpermissions-0.9.1.pom - https://repo.maven.apache.org/maven2/com/tbruyelle/rxpermissions2/rxpermissions/0.9.1/rxpermissions-0.9.1.pom - https://jitpack.io/com/tbruyelle/rxpermissions2/rxpermissions/0.9.1/rxpermissions-0.9.1.pom Required by: project :app > com.github.KingsMentor:MobileVisionBarcodeScanner:2.0.0

Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

It's seems that this library it's still in jcenter() repository only.

jcenter() is going to no longer exist anymore and we are forced to use mavenCentral() repo now.

If there's a possibility of fixing this please let me know, cheers.

NicoEtche avatar Aug 23 '21 14:08 NicoEtche

Found the solution @NicoEtche ?

abhishekdeswal03 avatar Oct 10 '24 15:10 abhishekdeswal03