linux - 如何使用 gradle 修复 AUR 中的此构建错误(可能与权限有关)
问题描述
我正在尝试在 Arch linux 中安装 AUR 包。
我得到以下问题,我认为这是一个权限问题。
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.6.4/userguide/gradle_daemon.html
Process command line: /usr/lib/jvm/java-11-openjdk/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/user/.gradle/wrapper/dists/gradle-5.6.4-all/ankdp27end7byghfw1q2sw75f/gradle-5.6.4/lib/gradle-launcher-5.6.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.6.4
Please read the following process output to find out more:
-----------------------
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.createClassLoaderRegistry().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
==> ERROR: A failure occurred in build().
Aborting...
我试过了:
sudo chmod -R 750 ~/.gradle
没有成功
解决方案
rm -rf ~./gradle
为我修好了
推荐阅读
- ruby-on-rails - Pundit 使用非直接关联模型授权索引操作
- android - 警报管理器设置为同一时间 onReceive 仅调用一次
- java - 无法将名称 [org.hibernate.dialect.MYSQL5Dialect] 解析为策略 [org.hibernate.dialect.Dialect]
- php - 查询不考虑传入参数的日期范围
- angular - 使用 Angular 材料按列过滤谓词表
- kubernetes - 将日志从 kubernetes 转发到 splunk
- eclipse - 使用`make`创建Eclipse项目?
- c# - Protobuf-Net NotSupportedException:类型不能表示为封闭不可变类型的默认值(UnityEngine.Vector3)
- kubernetes - 如果我在部署后更改我的 ConfigMap 键值,是否需要重新启动使用 configMap 值的应用程序的部署?
- computational-geometry - CGAL - 是否可以计算带孔多边形的 NFP