0

我正在使用 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

我应该怎么做才能解决这个问题?

4

0 回答 0