导入摇篮项目,[使用核查&QUOT包装的gradle;立即Android Studio中0.2.9失败 [英] Importing Gradle project with "Use gradle wrapper with verification" immediately failing in Android Studio 0.2.9

查看:238
本文介绍了导入摇篮项目,[使用核查&QUOT包装的gradle;立即Android Studio中0.2.9失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注:我想出解决这个当我写的帖子,但我把信息在这里的情况下,任何人都需要它

Android的工作室是给我下面的错误,当我试图导入摇篮项目(使用文件 - > 导入项目... 并选择的build.gradle 文件)

Android Studio was giving me the following error when i tried to import a Gradle project (using File -> Import Project... and selecting the build.gradle file)

Resolve Error

Could not install Gradle distribution from 'http://
services.gradle.org/distributions-snapshots/
gradle-1.8-20130830160653+0000-bin.zip'.
java.util.zip.ZipException: error in opening zip file
error in opening zip file

Consult IDE log for more details (Help | Show Log)

另见:

错误日志的要点

错误单击导入对话框OK后,立即出现了。导入过程中有previously失败,原因是一个参差不齐的互联网连接,我猜的Andr​​oid工作室/摇篮可能已经缓存在部分下载,现在正不成功尝试使用部分下载,而不是获取的文件。

the error appeared immediately after clicking 'OK' in the import dialog. the import process had previously failed due to a spotty internet connection, and i guessed that Android Studio / Gradle may have cached the partial download and was now unsuccessfully trying to use that partial download instead of fetching the files.

这个问题可以通过清除不良下载从缓存中得到解决。我在OSX缓存 gradle这个-1.8-20130830160653 + 0000-bin.zip 是位于

this issue can be resolved by clearing the bad download out of the cache. my cache on OSX for gradle-1.8-20130830160653+0000-bin.zip was located at

~/.gradle/wrapper/dists/gradle-1.8-20130830160653+0000-bin

删除从摇篮导入项目的过程,目录和重试再次提升了系统再次尝试下载。

removing that directory and retrying the 'Import Project from Gradle' process again promoted the system to retry the download.

希望这可以帮助别人花更少的时间在这比我做的:)

hope this helps someone spend less time on this than i did :)

推荐答案

有关Windows用户它位于

For Windows users it is located in

C:\\用户\\%your_username%\\ gradle这个\\包装\\ dists中

C:\Users\%your_username%\.gradle\wrapper\dists

只是删除​​上面的文件夹内的一切...

just remove everything inside the above folder...

希望它可以帮助...:)

Hope it helps... :)

这篇关于导入摇篮项目,[使用核查&QUOT包装的gradle;立即Android Studio中0.2.9失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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