Android的工作室更新之后摇篮项目刷新失败 [英] Gradle project refresh failed after Android Studio update

查看:204
本文介绍了Android的工作室更新之后摇篮项目刷新失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是输出:

上午11时57分04秒摇篮KeddreaderProject项目刷新失败:原因:   org.gradle.internal.service.ServiceLocator([Ljava /朗/类加载器;)V:

11:57:04 AM Gradle 'KeddreaderProject' project refresh failed: Cause: org.gradle.internal.service.ServiceLocator.([Ljava/lang/ClassLoader;)V:

我试图删除.gradle文件夹,但它并不能帮助。可能是什么问题?

I've tried to remove .gradle folder, but it doesn't help. What can be the problem?

编辑:我甚至得到这个错误,当我尝试导入任何其他项目上的Ubuntu 13.10。但是,在Windows上一切正常(随着Android Studio的版本相同)很好。

I get this error even when I try to import any other project on Ubuntu 13.10. But on Windows everything works (with the the same version of Android Studio) well.

推荐答案

大多数人不阅读注释,以便总结(感谢@产业,抗排卵pressant和@wrecker):

Most people do not read the comments so to summarize (Thanks to @Industrial-antidepressant and @wrecker):

作为建议在错误机票你应该尝试以下方法:

As suggested in a bug ticket you should try the following:

  1. 关闭Android的工作室
  2. 进入到Android工作室/插件/摇篮/ lib目录
  3. 删除(或更好的移动它们的地方有一个备份)的所有摇篮 - * - 1.8 文件
  4. 在开始Android的工作室再次和重建/刷新。
  1. Close Android Studio
  2. go to android-studio/plugins/gradle/lib
  3. Delete (or better move them somewhere to have a backup) all gradle-*-1.8 files
  4. Start Android Studio again and rebuild/refresh.

它应该工作。确保星级以上的bug票得到通知。

It should work. Make sure to star the above bug ticket to get informed.

小提示: 尝试新的编译设置设置 - >编译器 - >摇篮并激活第三个过程构建一个加快。根据项目设置,您可能要选择的第一个也是如此。随着我的项目生成时间缩短到2-4秒(以前20多秒)。

Little tip: Try the new compile setting Settings -> Compiler -> Gradle and activate the third in-process build for a speed up. Depending on your project setting you might want to select the first one as well. With that my project build time reduced to 2-4 seconds (before 20+ seconds).

这篇关于Android的工作室更新之后摇篮项目刷新失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆