简体   繁体   English

android studio gradle sync错误

[英]android studio gradle sync error

After trying a preview version that gave me odd errors, i just did a fresh install of Android Studio 1.1.0 on Ubuntu Linux. 在尝试了一个给我奇怪错误的预览版之后,我刚刚在Ubuntu Linux上安装了全新的Android Studio 1.1.0。 I also removed the preferences directory to start from scratch. 我还删除了首选项目录以从头开始。

Now even with new projects gradle sync fails with this error and i cannot find the cause or other informations that can give me hints about the cause: 现在,即使有新项目,gradle sync也会因此错误而失败,我找不到原因或其他信息可以给我提示原因:

Error:Cause: org.jetbrains.plugins.gradle.tooling.ModelBuilderService: Provider org.jetbrains.plugins.gradle.tooling.builder.ExternalProjectBuilderImpl not found

Does anybody knows how to fix this? 有谁知道如何解决这个问题?

Solved by deleting the $HOME/.gradle folder. 通过删除$ HOME / .gradle文件夹解决。

I guess executing the preview version messed up something there. 我猜执行预览版本搞砸了。

I had to delete the .AndroidStudioPreview, .gradle/ and the .android. 我不得不删除.AndroidStudioPreview,.gradle /和.android。 Basically it's like to uninstall android studio, but it worked for me. 基本上它就像卸载android studio,但它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM