首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >android错误:(44,13)未能解决com.esri.arcgis.android:arcgis-android:10.2.7

android错误:(44,13)未能解决com.esri.arcgis.android:arcgis-android:10.2.7
EN

Stack Overflow用户
提问于 2016-05-08 13:06:35
回答 3查看 1.2K关注 0票数 0

每当我构建我的android项目时,它都会给我这个错误。

代码语言:javascript
运行
复制
android Error:(44, 13) Failed to resolve com.esri.arcgis.android:arcgis-android:10.2.7

有人能帮我吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2016-05-10 12:01:42

问题就这样解决了。

添加以下行

代码语言:javascript
运行
复制
 // Add the following ArcGIS repository
        maven {
            url 'https://esri.bintray.com/arcgis'
        }

在项目模块的build.gradle中

像这样

代码语言:javascript
运行
复制
// 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依赖项的版本如下

代码语言:javascript
运行
复制
compile 'com.esri.arcgis.android:arcgis-android:10.2.8'
票数 2
EN

Stack Overflow用户

发布于 2016-05-08 13:19:31

可能是必要的。

在应用程序模块build.gradle文件中,在依赖项块中添加一个指令,将用于安卓依赖项的ArcGIS运行时SDK包含到应用程序中。App模块build.gradle文件

从这里开始休整所有的台阶

代码语言:javascript
运行
复制
dependencies {
    // Add ArcGIS Runtime SDK for Android dependency
    compile 'com.esri.arcgis.android:arcgis-android:10.2.7'
}
票数 0
EN

Stack Overflow用户

发布于 2016-06-21 15:04:05

这可能是由于Android版本的错误匹配所致。因此,尝试在应用程序级别的build.gradle中提供最新的依赖项。在我的例子中,我把它从10.2.6改为10.2.8

代码语言:javascript
运行
复制
compile 'com.esri.arcgis.android:arcgis-android:10.2.8'
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37100187

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档