【问题标题】:When importing libgdx project to eclipse I get Gradle error将 libgdx 项目导入 Eclipse 时出现 Gradle 错误
【发布时间】:2019-04-10 00:11:32
【问题描述】:

每当我尝试将我的 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'.

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

【问题讨论】:

    标签: android eclipse gradle libgdx


    【解决方案1】:

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

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多