Android building problem cordova lib

This is my problem
√ cordova prepare - done!

cordova emulate android
ANDROID_HOME=C:\Users\user\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_8p99sqeyr3dtjsvkfzhr0b9pd.run(C:\projects\testapp\platforms\android\build.gradle:137)

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_debugApk’.
A problem occurred configuring project ‘:CordovaLib’.
Could not resolve all dependencies for configuration ‘:CordovaLib:classpath’.
Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3.
Required by:
project :CordovaLib
Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3.
Could not get resource ‘https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.pom’.
Could not GET ‘https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.pom’.
Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connect

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 42.361 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_debugApk’.
A problem occurred configuring project ‘:CordovaLib’.
Could not resolve all dependencies for configuration ‘:CordovaLib:classpath’.
Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3.
Required by:
project :CordovaLib
Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3.
Could not get resource ‘https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.pom’.
Could not GET ‘https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.pom’.
Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connect

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    [ERROR] An error occurred while running cordova emulate android (exit code 1).

Hi I have same error and i think it’s because Iran’s Ip banned somewhere ! or you have a firewall issue you have to find a solution to download dependencies offline ! or use a VPN connection.