我想在我的项目中使用这个库:https://github.com/haldertaer/android-maps-utils
当我在Gradle中使用implementation 'com.github.haldertaer:android-maps-utils:0.5'时,我得到以下错误:ERROR: Failed to resolve: com.github.haldertaer:android-maps-utils:0.5
是的,我已经有了:
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}如何修复此错误?我看不出有什么问题。
发布于 2019-07-10 02:30:39
根据project documentation,为官方库定义依赖项的正确方法是
implementation 'com.google.maps.android:android-maps-utils:0.5'更新
根据您的评论,您希望使用JitPack解析派生版本,而不是官方版本。当使用JitPack时,version必须是"Release tag,commit hash或-SNAPSHOT“(Building with JitPack)之一。您可以尝试使用
com.github.haldertaer:android-maps-utils:master-SNAPSHOT或
com.github.haldertaer:android-maps-utils:72b39c8https://stackoverflow.com/questions/56958228
复制相似问题