android - 将 libgdx 项目导入 Eclipse 时出现 Gradle 错误
问题描述
每当尝试将我的 LIBGDX 项目导入我刚刚创建的 eclipse 时,我都会从 eclipse 中收到此错误:
错误真的很长,所以我做了一个 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'.
我是这个编程领域的新手,我不知道如何修复这些东西。任何帮助表示赞赏!
解决方案
经过更多搜索后,我在堆栈跟踪中发现了这个错误:
找不到 aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1)。
并找到了一个帖子,其中的答案解决了这里的问题:
推荐阅读
- r - 变异一列并根据 matchin gof 两列从另一列填充其值
- vue.js - 存储状态更改时数据不更改
- java - 在 Java 中使用 MongoDB 驱动程序 POJO
- c# - Epplus 将范围对象转换为 c# 模型
- reactjs - RequireJs 与 Babel
- angular - 使用角度形式 ControlValueAccessor 和 mat-autocomplete
- spring-boot - 在 Spring Cloud Gateway 中将配置从 Ribbon 更改为 Spring Cloud Load Balancer
- nlp - Word2Vec- 词嵌入会改变吗?
- android - 我在 Android Studio 中遇到函数 OnClick Fragment _kotlin 的问题
- nginx - 从稳定存储库升级到 ingress-nginx 存储库后,nginx 入口资源无法正常工作