I can't build my project - don't know why!

logs…

cordova build android
ANDROID_HOME=/Users/mohsen/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
Subproject Path: CordovaLib

it fires these errors

Exception in thread "main"
java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: /Users/mohsen/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Error: /Users/mohsen/Desktop/bazar/bazar/platforms/android/gradlew: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: /Users/mohsen/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

[ERROR] An error occurred while running cordova build android (exit code 1).

Solved by downloading gradle 2.14.1
and setting variable CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL to my gradle 2.14.1 path