原因:错误打开压缩文件(机器人工作室) [英] Cause: error in opening zip file (android-studio)

查看:240
本文介绍了原因:错误打开压缩文件(机器人工作室)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建一个新的项目,我完成的步骤,点击完成,等待项目的开放。
而是我看到一个错误:

When I create a new project I finish the steps and click on "finish" and wait for the project to open. But instead I see an error:

我解决不了这个问题。

推荐答案

我不得不使用文件&gt导入GitHub的项目进入Android的工作室后,这一问题;导入项目选项。网络是个好人,我有其他Android Studio项目正常工作,所以这不是一个安装问题。我跑 Android的工作室(preVIEW)0.5.4

My Installation & problem details

I had this issue after importing a github project into Android Studio using the File > Import Project option. Network was fine and I had other Android Studio projects working properly so this was not a installation issue. I run Android Studio (Preview) 0.5.4

我比较有工作项目差异的奢侈品。这就是我发现的错误是由于在 gradle这个/包装/ gradle-wrapper.properties distributionUrl 属性文件。

I had the luxury of comparing differences with working projects. That is how I discovered the error was due to the distributionUrl property in the gradle/wrapper/gradle-wrapper.properties file.

在失败的项目该定像 distributionUrl = HTTP \\://services.gradle.org/distributions/gradle-1.10-all.zip 。而在工作的项目,这是 distributionUrl = HTTP \\://services.gradle.org/distributions/gradle-1.11-all.zip 。注意在版本的差异。

In the failing project this was set like distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip. While in the working project this was distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip. Note the difference in the version.

更新这个distributionUrl在gradle-wrapper.properties本 1.11 链接解决这个问题对我来说。

Updating this distributionUrl in gradle-wrapper.properties to this 1.11 link solved the issue for me.

我有一个非常严格的限制网络上的这个问题,我可以看到gradle这个1.10的链接确实指向一个zip文件。网络问题听起来很合理到。也许我已经有另外一个网络上的拉链1.11下载时间。我的不太可能(虽然不是不可能)的1.10拉链坏了。

I have this issue on a very restricted network and I can see that the gradle-1.10 link does point to a zip file. The network issue sounds very plausible to. Probably I already have the 1.11 zip downloaded while on another network. I's less likely (though not impossible) that the 1.10 zip is broken.

这篇关于原因:错误打开压缩文件(机器人工作室)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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