1.

Android Studio -> preferences... -> Build, Execution, Deployment -> Build Tools -> Gradle

Check the 'Offline work' under 'Global Gradle settings'

It will reduce 90% gradle build time.

将offline work选项关闭,否则不在线下载依赖

2.Android Studio出现Failed to open zip file问题的解决方法

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中的distributionUrl将

 distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
改成
 distributionUrl=http\://services.gradle.org/distributions/gradle-4.4-all.zip其实这里的区别就是https和http。

Android Studio build失败情况解决方案相关推荐

  1. Android studio Build时,Download maven-metadata.xml卡住不动的问题

    这两天遇到一个项目编译的问题,Android studio Build时,Download maven-metadata.xml卡住不动的问题,快的时候十几分钟才编译完成,慢的半个小时都无法完成,这个 ...

  2. Android Studio开发过程中BUG解决方案——持续更新

    Android Studio开发过程中BUG解决方案: android萌新打怪升级之旅:android项目开发BUG集成 起笔时间:2022.5.20 版本:2021.2.1 问题描述1:无法查看/d ...

  3. Android Studio Build running 时间过长且失败Gradle

    错误内容 Unable to resolve dependency for ':app:Infolibrary@debugAndroidTest/compileClasspath': Could no ...

  4. Android Studio build.gradle配置详解

    Android Studio是采用gradle来构建项目的,gradle是基于groovy语言的,如果只是用它构建普通Android项目的话,是可以不去学groovy的.当我们创建一个Android项 ...

  5. android studio socket 失败,Android应用开发Android Studio建立Socket连接失败解决方法

    本文将带你了解Android应用开发Android Studio建立Socket连接失败解决方法,希望本文对大家学Android有所帮助. < Android Studio建立Socket连接失 ...

  6. Windows 7上的Android Studio安装失败,未找到JDK

    本文翻译自:Android Studio installation on Windows 7 fails, no JDK found I downloaded Android Studio and a ...

  7. Android Studio Build Output控制台输出乱码解决

    Android Studio版本升级到4.0之后,出现Build Output控制台输出乱码的现象.该情况在Android Studio版本3.6及以上就会出现. 解决方法: 点击Android St ...

  8. android studio build variants,Android studio构建App的不同variants和types

    一个App可能有免费版和付费版之分,还可能有Phone何Tablet之分,但是不论什么版本,它们之间都有很大的 相同点,只是很少的地方有差异,它们称为build variants,Android St ...

  9. Android Studio no debuggable applications解决方案2

      no debuggable applicandroidandroid studio解决方案debuggable android studio 默认是没有开启debuggable 功能的,在tool ...

最新文章

  1. lampp mysql 等待响应时间很长,XAMPP 最大执行时间(max_execution_time) 问题
  2. php 负载监控_PHP监控linux服务器负载
  3. js 调 CDHtmlDialog API
  4. J.U.C系列(一)CountDownLatch的使用
  5. 【Linux】一步一步学Linux——seq命令(221)
  6. [Leetcode][第336题][JAVA][回文对][暴力][HashSet][字典树]
  7. 高颜值免费在线SCI绘图工具支持导出PPT格式图片和图片分享功能
  8. Qt文档阅读笔记-Qt5录音功能的实现
  9. python实时语音转写_使用实时语音转写_语音交互服务 SIS_SDK参考_Python SDK_华为云...
  10. Mocha Pro 2022 Plugins for mac(达芬奇/Fusion/Nuke/OFX插件)
  11. Android项目中使用XUI框架的准备工作
  12. ue4蓝图运行顺序_如何从零基础慢慢学习到UE4的顺序?
  13. 按年、月、日统计数据sql写法
  14. php fflush函数的用法,fflush 函数
  15. 安装Activemq5.13.2异常
  16. [C/C++]宽字符与控制台输出
  17. ubuntu账户添加和删除
  18. 第7讲 替代定理、戴维南定理、诺顿定理
  19. 拉格朗日插值法与牛顿插值多项式
  20. intrins.h文件解读

热门文章

  1. 埃拉托斯特尼(Eratosthene)筛法
  2. 花里胡哨的天气插件代码生成
  3. 深入理解 padding
  4. [附源码]java毕业设计房屋租赁管理系统
  5. Python爬虫进阶必备 | X天下与XX二手房密码加密分析
  6. 背靠Mobileye/降价抢市场,经纬恒润闯关IPO背后“危机四伏”
  7. 手写Hashmap第二版
  8. 粉笔公考——方法精讲——资料分析
  9. 小程序弹框wx.showModal、wx.showActionSheet、wx.showToast
  10. 纷享销客数字化营销(一):企业专属微站和员工智能名片