Android Studio出现Failed to open zip file问题的解决方法
16lz
2021-01-23
安卓新建项目时的错误
Error:Failed to open zip file.
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)
原因:
在网上搜索了一下,发现问题出在gradle-wrapper.properties
解决步骤:
1.从这个网址下载对应的zip包 http://services.gradle.org/distributions/
2.我的电脑:~/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9$ ls
gradle-3.3-all.zip gradle-3.3-all.zip.lck
3.把下载的zip不解压, 直接替换到该目录下。
4.AS就能自动识别了
参考链接:http://www.jcodecraeer.com/a/anzhuokaifa/Android_Studio/2017/0317/7691.html
更多相关文章
- 搭建Android x86_64及arm64-v8a操作步骤
- android 开发谷歌地图的步骤
- Android中获取当前位置的使用步骤
- osg for android 学习之三:老外的步骤,包括编译和运行例子
- 六步骤开发和发布自己的Android Studio类库
- Android中事件处理之LongClickListener实现步骤
- Android中点击事件之FocusChangedListener实现步骤
- Android Studio 下载 与 安装 详细步骤
- Android market 发布个人免费应用的步骤