Search code examples
androidgradlegeofire

ERROR: Failed to resolve: com.github.imperiumlabs:GeoFirestore-Android:v1.5.0


When I add the following dependency in my gradle:

    ...
    implementation 'com.github.imperiumlabs:GeoFirestore-Android:v1.5.0'
}

I get:

ERROR: Failed to resolve: com.github.imperiumlabs:GeoFirestore-Android:v1.5.0
Show in Project Structure dialog
Affected Modules: app

I tried to install a previous version (1.4.0) but was met with the same error.

Is there any way around this?

Here is the package in question


Solution

  • Have you enabled Jitpack in your project? This is needed, along with the 'implementation' code that you showed up here.
    https://github.com/imperiumlabs/GeoFirestore-Android#enable-jitpack

    Enable Jitpack
    Add it in your root build.gradle at the end of repositories:

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