i’m getting the following error when trying to run a flutter app
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.github.umair13adil:RxLogs:1.0.20.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/umair13adil/RxLogs/1.0.20/RxLogs-1.0.20.pom
- https://jcenter.bintray.com/com/github/umair13adil/RxLogs/1.0.20/RxLogs-1.0.20.pom
- https://repo.maven.apache.org/maven2/com/github/umair13adil/RxLogs/1.0.20/RxLogs-1.0.20.pom
- https://storage.googleapis.com/download.flutter.io/com/github/umair13adil/RxLogs/1.0.20/RxLogs-1.0.20.pom
- https://jitpack.io/com/github/umair13adil/RxLogs/1.0.20/RxLogs-1.0.20.pom
Required by:
project :app > project :flutter_logs
I have tried
-
delete pubspec.lock file,
-
run flutter clean,
-
run flutter pub get.
-
Changed the version to
classpath ‘com.google.gms:google-services:4.3.8’ in android/buildgradle
2
Answers
Some things you can do:
If the RxLogs package is not available on pub.dev, you might need to manually install it. This involves adding the repository URL and dependency information to your build.gradle file:
If you’re using JitPack to resolve the dependency, ensure that the jitpack.io repository is added to your build.gradle file under the repositories section.
In your android/build.gradle (project-level):
Hope that helps
I’ve tried every solution to fix this issue, but none of them have worked so far. Has anyone been able to solve this problem successfully?