Class org.gradle.tooling.internal.gradle.DefaultBuildIdentifier does not implement the requested interface

huangapple go评论124阅读模式
英文:

Class org.gradle.tooling.internal.gradle.DefaultBuildIdentifier does not implement the requested interface

问题

我已经在Ubuntu 20.04上重新安装了Android Studio。我收到了以下错误消息:“最低支持的Gradle版本是4.10.1。当前版本为4.4.1。”

但是当我尝试将gradle更新到任何更新版本时,我收到以下输出:

启动Gradle Daemon...

Gradle Daemon在531毫秒内启动

失败:构建失败,出现异常。

  • 出现了什么问题:

未能通知构建监听器。

类org.gradle.tooling.internal.gradle.DefaultBuildIdentifier未实现所请求的接口org.gradle.tooling.model.BuildIdentifier

我尝试过Android Gradle插件版本4.0.1和Gradle版本6.6.1,以及几个较旧的版本,但结果相同。

英文:

I have reinstalled Android Studio on Ubuntu 20.04. I've received error: "Minimum supported Gradle version is 4.10.1. Current version is 4.4.1."

But when I try to update gradle to any newer version, I receive output:

> Starting Gradle Daemon...
>
> Gradle Daemon started in 531 ms
>
> FAILURE: Build failed with an exception.
>
> * 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

I've tryed Android Gradle Plugin Version 4.0.1 and Gradle Version 6.6.1 and several older versions with the same result.

答案1

得分: 0

我已经再次移除并重新安装了 Android Studio。出现了错误:“无法为锁定文件的父目录创建目录 <我的 gradle wrapper 位置>”。检查了 gradle wrapper 位置的访问权限,并注意到一些目录的所有者是 root。我更改了这些目录的所有者。它起了作用:接下来的构建成功了。

英文:

I have removed and reinstalled android studio once more. Got error: "Could not create parent directory for lock file <*my gradle wrapper location>". Checked access rights for gradle wrapper location and noticed, that some directories were owned by root. I changed owner for these directories. It helped: the next build was successfull.

huangapple
  • 本文由 发表于 2020年9月4日 04:52:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/63731493.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定