Gradle构建失败-无法解压缩 [英] Gradle build failed - unable to unzip

查看:411
本文介绍了Gradle构建失败-无法解压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用android studio做一个项目,最近它显示your SDK is missing or out of date的错误,所以我再次下载了SDK,现在它显示了Gradle Build failed

I am doing a project using android studio.Recently it showed an error that your SDK is missing or out of date so, I downloaded SDK once again.Now it shows an error that Gradle Build failed

下面提到了该错误:

`Error:Execution failed for task ':app:prepareComAndroidSupportAnimatedVectorDrawable2531Library'.
> Unable to unzip '/home/nandha/Android/Sdk/extras/android/m2repository/com/android/support/animated-vector-drawable/25.3.1/animated-vector-drawable-25.3.1.aar' to '/home/nandha/.android/build-cache/e07f150905e44f35b3635185e8f46be2d475fc86/output' or find the cached output '/home/nandha/.android/build-cache/e07f150905e44f35b3635185e8f46be2d475fc86/output' using the build cache at '/home/nandha/.android/build-cache'.
  To troubleshoot the issue or learn how to disable the build cache, go to https://d.android.com/r/tools/build-cache.html.
  If you are unable to fix the issue, please file a bug at https://d.android.com/studio/report-bugs.html.

请帮助我解决此错误.

推荐答案

您需要清除构建缓存. 从菜单栏中选择视图">工具窗口">终端",然后使用以下命令之一:

You need the clear the build cache. Select View > Tool Windows > Terminal from the menu bar and use one of the following commands:

在Windows上: gradlew cleanBuildCache

On Windows: gradlew cleanBuildCache

这篇关于Gradle构建失败-无法解压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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