gpt4 book ai didi

gradle - libgdx项目生成gradle错误

转载 作者:行者123 更新时间:2023-12-03 04:40:33 25 4
gpt4 key购买 nike

我正在尝试生成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

有没有什么办法解决这一问题?谢谢!

最佳答案

这真的很简单。打开成绩文件。将第5行从

maven { https://oss.sonatype.org/content/repositories/snapshots/ }

至:
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }

关于gradle - libgdx项目生成gradle错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28934589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com