当我在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),但遇到相同的错误。
有什么办法解决吗?
答案 0 :(得分:1)
您是否在项目中启用了Jitpack?这是必需的,以及您在此处显示的“实现”代码。
https://github.com/imperiumlabs/GeoFirestore-Android#enable-jitpack
启用Jitpack
将其添加到存储库末尾的root build.gradle中:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}