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

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

当我在 gradle 中添加以下依赖项时:

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

我得到:

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) 但遇到同样的错误。

有什么解决办法吗?

Here is the package in question

你的项目是否启用了Jitpack?这是必需的,还有您在此处显示的 'implementation' 代码。
https://github.com/imperiumlabs/GeoFirestore-Android#enable-jitpack

启用 Jitpack
将其添加到存储库末尾的根 build.gradle 中:

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