最近更新了老项目,之前项目中使用到了arcgisforandroid 10.2.9 之前引入都没有问题,结果现在再运行项目出现
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.esri.arcgis.android:arcgis-android:10.2.9.
Show Details
Affected Modules: app
为了解决问题重新按照官网在进行配置仍旧出现问题。之后百度查询找到解决方法,记录如下:
解决方案
将项目下的build.gradle
allprojects {
repositories {
...
maven {url 'https://esri.bintray.com/arcgis/'}
...
}
}
替换为
allprojects {
repositories {
...
maven { url 'https://esri.jfrog.io/artifactory/arcgis' }
...
}
}
重新构建就完成了。