[英]libgdx's gradlew doesn't work in Fedora
So I tried to create a libgdx project with libgdx-setup: 所以我试图用libgdx-setup创建一个libgdx项目:
./gradlew desktop:run
And I got the following output: 我得到以下输出:
Configuration on demand is an incubating feature.
:core:compileJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':core:compile'.
Unexpected lock protocol found in lock file.
在锁定文件中找到意外的锁定协议。 Expected 3, found 0.
预期为3,发现为0。
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.281 secs
It is really strange as I have never met this trouble before. 真奇怪,因为我从未遇到过这种麻烦。 I searched through the internet and I got nothing useful, so I come here to ask for help.
我通过互联网搜索,没有任何帮助,所以我来这里寻求帮助。 Any answer will be appreciated.
任何答案将不胜感激。 Thanks.
谢谢。
This happens if something messed up your gradle environment. 如果某些事情弄乱了gradle环境,则会发生这种情况。 Remove your
~/.gradle/
directory or invalidate the caches of gradle. 删除
~/.gradle/
目录或使gradle的缓存无效。 That should do the trick. 这应该够了吧。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.