Android Studio配置Esri ArcGIS

1.Android Studio中新建项目;

2.打开project根目录下的build.gradle文件

repositories {
        jcenter()
        // Add the following ArcGIS repository
        maven {
            url 'http://dl.bintray.com/esri/arcgis'
        }
    }

3.打开app目录下的build.gradle文件

android {
    ...
    packagingOptions {
        exclude 'META-INF/LGPL2.1'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    //add
    compile 'com.esri.arcgis.android:arcgis-android:10.2.6-2'
}

4.配置完之后,点击Sync Project with Gradle Files

5.Ok

posted on 2015-09-18 20:35  jec  阅读(443)  评论(0编辑  收藏  举报

导航