将libgdx项目导入到Eclipse时出现Gradle错误

时间:2018-11-06 15:09:54

标签: android eclipse gradle libgdx

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

The error was really long so I made a pastebin 错误的第一位:

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'.

我是编程领域的新手,我不知道如何解决这些问题。任何帮助表示赞赏!

1 个答案:

答案 0 :(得分:0)

更多搜索后,我在堆栈跟踪中发现了此错误:

  

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

并在此处找到了带有答案的帖子,以解决此问题:

  

Android CI build: Could not find aapt2-proto.jar