解析失败:com.esri.arcgisruntime:arcgis-android:100.12.0
Failed to resolve: com.esri.arcgisruntime:arcgis-android:100.12.0
我的项目环境:
Android 北极狐工作室 | 2020.3.1 补丁 1
Build #AI-203.7717.56.2031.7621141,建于 2021 年 8 月 8 日
项目:
implementation 'com.esri.arcgisruntime:arcgis-android:100.12.0'
模块:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://esri.jfrog.io/artifactory/arcgis' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
}
}
gradle-包装器
#Mon Sep 27 14:27:21 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
错误:解析失败:com.esri.arcgisruntime:arcgis-android:100.12.0
您应该在 allprojects 节点中添加 maven { url 'https://esri.jfrog.io/artifactory/arcgis' },而不是 buildscript 节点。 buildscript 中的 repositories 节点是插件依赖项的 repos,例如 classpath "com.android.tools.build:gradle:7.0.1",而不是项目模块中 dependenices 的 repos build.gradle.
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://esri.jfrog.io/artifactory/arcgis' }
}
}
我的项目环境:
Android 北极狐工作室 | 2020.3.1 补丁 1
Build #AI-203.7717.56.2031.7621141,建于 2021 年 8 月 8 日
项目:
implementation 'com.esri.arcgisruntime:arcgis-android:100.12.0'
模块:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://esri.jfrog.io/artifactory/arcgis' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
}
}
gradle-包装器
#Mon Sep 27 14:27:21 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
错误:解析失败:com.esri.arcgisruntime:arcgis-android:100.12.0
您应该在 allprojects 节点中添加 maven { url 'https://esri.jfrog.io/artifactory/arcgis' },而不是 buildscript 节点。 buildscript 中的 repositories 节点是插件依赖项的 repos,例如 classpath "com.android.tools.build:gradle:7.0.1",而不是项目模块中 dependenices 的 repos build.gradle.
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://esri.jfrog.io/artifactory/arcgis' }
}
}