Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NicoEtche opened this issue Aug 23, 2021 · 1 comment

Comments

@NicoEtche
Copy link

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 NicoEtche changed the title Rx permissions2 prevents building app when removing jcenter() to add mavenCentral() repo Rx permissions2 prevents building app when jcenter() is removed to add mavenCentral() repository Aug 23, 2021
@abhishekdeswal03
Copy link

Found the solution @NicoEtche ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants