Error when i run ionic build android

Hi ionic developer !
please i have this problem when i run ionic build android i need help please

Running command: /Users/username/projet/projet/hooks/after_prepare/010_add_platform_class.js /Users/username/projet/projet
add to body class: platform-android
ANDROID_HOME=/Users/username/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home
Unzipping /Users/username/.gradle/wrapper/dists/gradle-2.2.1-all/2m8005s69iu8v0oiejfej094b/gradle-2.2.1-all.zip to /Users/username/.gradle/wrapper/dists/gradle-2.2.1-all/2m8005s69iu8v0oiejfej094b
Exception in thread “main” java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at java.util.zip.ZipFile.(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:160)
at org.gradle.wrapper.Install.access$400(Install.java:29)
at org.gradle.wrapper.Install$1.call(Install.java:70)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
… 3 more
Error: Error code 1 for command: /Users/username/projet/projet/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/username/projet/projet/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

thank

This is not about Ionic. This error occurs when Unzipping Gradle.

See:

thank you douglasjunior but my android studio work with very good

Yes, but when you run ionic build android, it downloads and runs an standalone Gradle to compile and build your project. And the version of Gradle used by Ionic is different from Android Studio.

If you uses Proxy, VPN, or other authentications types, the Android Studio make it transparent, but when you use Gradle directly is not.

Other option is to delete the Gradle files in /Users/username/.gradle/wrapper/dists/ to force it to do Download again.

ok, thank you for your help