Android studio - Failed to complete gradle execution - error in opening zip file

后端 未结 15 2112
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 04:21

I\'m new to android development and android studio IDE.

I\'ve checked-out a project from bitbucket and when I try to compile it I get the following error:

相关标签:
15条回答
  • 2020-11-29 04:36

    I had the same issue

    • Go to C:\Users\Jesus Navas.gradle\wrapper\dists\gradle-3.3-all(your gradle version).

    • Erase your current gradle version and write again in cmd "ionic build android".

    • However, your gradle will download again, then it will unzip it automatically, ready checkout the output .apk,

    this solved my issue

    0 讨论(0)
  • 2020-11-29 04:37

    I had the same problem, happened after turning on and off jack and jill tool chain. I tried removing .gradle but it didn't help. Removing the build directory inside my project folder resolves the problem.

    Try this before removing .gradle as it will need near 200MB worth of download.

    0 讨论(0)
  • 2020-11-29 04:37

    Clearing .gradle directory didn't help, but clearing build directory did the job for me.

    0 讨论(0)
  • 2020-11-29 04:37

    In recent versions of Android Studio File -> Invalidate Caches / Restart is worth trying.

    0 讨论(0)
  • 2020-11-29 04:39

    I also faced the similar issue when imported the existing project into Android Studio, this might happened because of gradle version mismatch between two different Android Studio platform.

    Solution(on Mac OS):

    1. Close the Android Studio.
    2. Locate the .gradle folder at User/.gradle/
    3. Delete the folder & clear the Trash.
    4. Relaunch the Android Studio & Sync your project. It will re-download the gradle plugins & configurations.
    0 讨论(0)
  • 2020-11-29 04:42

    I fixed the same issue via the following:

    Go to File -> Settings -> Gradle

    Input the following in the "Gradle VM options:" box: -XX:MaxHeapSize=256m -Xmx256m

    Hit apply and Android Studio should build your project successfully.

    0 讨论(0)
提交回复
热议问题