每当我构建我的android项目时,它都会给我这个错误。
android Error:(44, 13) Failed to resolve com.esri.arcgis.android:arcgis-android:10.2.7有人能帮我吗?
发布于 2016-05-10 12:01:42
问题就这样解决了。
添加以下行
// Add the following ArcGIS repository
maven {
url 'https://esri.bintray.com/arcgis'
}在项目模块的build.gradle中
像这样
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
//**Added .. for ArcGIS
maven {
url 'https://esri.bintray.com/arcgis'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
// Add the following ArcGIS repository
maven {
url 'https://esri.bintray.com/arcgis'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}此外,我在应用模块build.gradle中编辑了arcgis依赖项的版本如下
compile 'com.esri.arcgis.android:arcgis-android:10.2.8'发布于 2016-05-08 13:19:31
可能是必要的。
在应用程序模块build.gradle文件中,在依赖项块中添加一个指令,将用于安卓依赖项的ArcGIS运行时SDK包含到应用程序中。App模块build.gradle文件
dependencies {
// Add ArcGIS Runtime SDK for Android dependency
compile 'com.esri.arcgis.android:arcgis-android:10.2.7'
}发布于 2016-06-21 15:04:05
这可能是由于Android版本的错误匹配所致。因此,尝试在应用程序级别的build.gradle中提供最新的依赖项。在我的例子中,我把它从10.2.6改为10.2.8
compile 'com.esri.arcgis.android:arcgis-android:10.2.8'https://stackoverflow.com/questions/37100187
复制相似问题