我正在尝试生成一个libgdx项目,但是我收到了与gradle相关的以下错误。
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\libgdx\gametest\build.gradle' line: 5
* What went wrong:
Could not compile build file 'C:\libgdx\gametest\build.gradle'.
> startup failed:
build file 'C:\libgdx\gametest\build.gradle': 5: unexpected token: } @ line 5, column 5.
}
^
1 error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
有什么方法可以解决这个问题吗?谢谢!
答案 0 :(得分:0)
这很简单。打开成绩档案。从
更改第5行maven { https://oss.sonatype.org/content/repositories/snapshots/ }
为:
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }