Gradle错误读取ZIP文件

Gradle错误读取ZIP文件

本文介绍了Android Studio Gradle错误读取ZIP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Android Studio(0.8.9)出现了一些问题。
当我想创建一个新项目,调试它或者其他任何东西时,会出现如下错误消息:

  Gradle'Afsddsf'项目刷新失败

错误:原因:读取zip文件错误



  gradle项目同步失败。基本功能将无法正常工作

我的.gradle-File中已经有zip-Folder。
我在这里找到了很多关于打开zip文件的错误。但没有人符合我的错误。我也安装了所有的SDK等。



还尝试在此项目中设置gradlesettings并选择本地gradle,但也无效。
可能有助于说,我的handyvieweremulator,通常显示在程序右边的开头,将不起作用。他有一些公民投票问题。
我今天晚上会发布我的错误日志,如果这也会有所帮助。



感谢您的帮助...

解决方案

像说的那样,我跟着



文件 - >设置 - >构建,执行,部署 - >构建工具 - > Gradle

,并且我检查了'离线工作'选项。

另外,我遵循以下步骤;



文件 - >无效缓存/重新启动 - >无效并重新启动。
$ b After上述步骤,我已经解决了这个问题。


I got some problems with my Android Studio (0.8.9).When i want to create a new project, debug it or whatever, there just appears a error message like:

Gradle 'Afsddsf' project refresh failed

Error:Cause: error reading zip file

in the top it shows:

gradle project sync failed. basic functionality will not work properly

I already have the zip-Folder in my .gradle-File.I found a lot of errors here in google about opening the zip-file. but noone of these matched to my error. I also installed all of the SDK's and so on.

Also tried to set up the gradlesettings in this project and choosed the local gradle, but also didn't work.maybe it helps to say, that also my "handyvieweremulator", which was normally shown in the beginning on the right side of the programm, won't work. he has some referending problems.i'm gonna post my errorlog this evening, if this is gonna help too.

Thanks for any help ...

解决方案

Like VVZen said that, i followed

File --> Settings --> Build, Execution, Deployment --> Build Tools --> Gradle

and i checked 'Offline work' option.

Additional, i followed below steps that;

File --> Invalidate Caches / Restart --> Invalidate and Restart.

After above steps, that problem was resolved for me.

这篇关于Android Studio Gradle错误读取ZIP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:27