[英]Class org.gradle.tooling.internal.gradle.DefaultBuildIdentifier does not implement the requested interface
I have reinstalled Android Studio on Ubuntu 20.04.我已经在 Ubuntu 20.04 上重新安装了 Android Studio。 I've received error: "Minimum supported Gradle version is 4.10.1. Current version is 4.4.1."我收到错误消息:“最低支持的 Gradle 版本是 4.10.1。当前版本是 4.4.1。”
But when I try to update gradle to any newer version, I receive output:但是当我尝试将 gradle 更新到任何更新版本时,我收到输出:
Starting Gradle Daemon...正在启动 Gradle 守护进程...
Gradle Daemon started in 531 ms Gradle 守护进程在 531 毫秒内启动
FAILURE: Build failed with an exception. FAILURE:构建失败,出现异常。
- What went wrong:什么地方出了错:
Failed to notify build listener.未能通知构建侦听器。
Class org.gradle.tooling.internal.gradle.DefaultBuildIdentifier does not implement the requested interface org.gradle.tooling.model.BuildIdentifier类 org.gradle.tooling.internal.gradle.DefaultBuildIdentifier 没有实现请求的接口 org.gradle.tooling.model.BuildIdentifier
I've tryed Android Gradle Plugin Version 4.0.1 and Gradle Version 6.6.1 and several older versions with the same result.我已经尝试过 Android Gradle 插件版本 4.0.1 和 Gradle 版本 6.6.1 以及几个具有相同结果的旧版本。
I have removed and reinstalled android studio once more.我再次删除并重新安装了android studio。 Got error: "Could not create parent directory for lock file <*my gradle wrapper location>".出现错误:“无法为锁定文件 <*my gradle wrapper location> 创建父目录”。 Checked access rights for gradle wrapper location and noticed, that some directories were owned by root.检查 gradle 包装器位置的访问权限并注意到,某些目录归 root 所有。 I changed owner for these directories.我更改了这些目录的所有者。 It helped: the next build was successfull.它有所帮助:下一次构建成功。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.