ArcGIS Android Studio法律解析:com.esri.arcgis.android:arcgis-android:10.2.8-1

时间:2017-03-23 13:55:20

标签: android gradle arcgis

尝试同步我的Android应用程序的gradle脚本时出现以下问题:

  

错误:(29,13)无法解决:com.esri.arcgis.android:arcgis-android:10.2.8-1

在阅读了几个网站并尝试应用他们的解决方案但错误不断出现之后,我也尝试使用不同版本的依赖项,但它仍无法正常工作。

这是我的build.gradle(Module:app)文件:

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
    applicationId "com.example.alejandrorodriguez.demoapp"
    minSdkVersion 17
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
packagingOptions{
    exclude 'META-INF/LGPL2.1'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/NOTICE'
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
   }
}

dependencies {
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
compile 'com.esri.arcgis.android:arcgis-android:10.2.8-1'
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}

我的build.gradle(Module:TestApp)文件:

buildscript {
repositories {
    jcenter()
    maven {
        url 'http://esri.bintray.com/arcgis'
    }
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
    repositories {
        jcenter()
        maven {
            url 'http://esri.bintray.com/arcgis'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

感谢您抽空帮助我:)

0 个答案:

没有答案