Android的工作室更新之后摇篮项目刷新失败摇篮、工作室、项目、Android

2023-09-05 07:42:44 作者:爱赖床的菇凉

下面是输出:

上午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:

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