当将libgdx项目导入eclipse时,我得到了Gradle错误



每当试图将我的LIBGDX项目导入到我刚刚创建的eclipse时,我都会从eclipse中得到以下错误:

错误太长了,所以我做了一个粘贴器错误的第一位:

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.6-bin.zip'.
A problem occurred configuring root project 'Endro'.
Could not resolve all artifacts for configuration ':classpath'.
Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.6-bin.zip'.

我是编程领域的新手,我不知道如何修复这些东西。感谢您的帮助!

经过更多的搜索,我在堆栈跟踪中发现了这个错误:

找不到aapt2-proto.jar(com.android.tools.build:aapt2-proto:0.3.1(。

并在这里找到了一个解决问题的答案:

Android CI构建:找不到aapt2-proto.jar

最新更新