无法使用Gradle分发'https://services.gradle.org/distributions/gradle-4.3-bin.zip'运行构建操作

时间:2018-03-20 17:28:44

标签: java gradle arcgis arcgis-runtime

我使用Eclipse Oxigen并且在使用ArcGIS Java SDK插件构建Gradle项目时出现问题,我得到的错误是:

Synchronize Gradle projects with workspace failed due to an error in the referenced Gradle build.
Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.3-bin.zip'.

A problem occurred configuring root project 'ArcGISPrimerApp'.
Could not expand ZIP 'C:\Users\Usuario\.arcgis\100.2.1\arcgis-java-resources-100.2.1.zip'.archive is not a ZIP archive org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.3-bin.zip'.

我的build.gradle是这样的:

apply plugin: 'eclipse'
apply plugin: 'application'
//apply the ArcGIS Java SDK Plug-in for Gradle With_3D-Add_Graphics-
Surface_Placement
apply plugin: 'com.esri.arcgisruntime.java'

buildscript {
repositories { maven { url 'https://esri.bintray.com/arcgis' } }
dependencies { classpath 'com.esri.arcgisruntime:gradle-arcgis-java-
plugin:1.0.0' }
}

arcgis.version = '100.2.1'

// download javadoc
eclipse.classpath.downloadJavadoc = true

为了解决这个问题,我该怎么做?

0 个答案:

没有答案