英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论