Skip to content Skip to sidebar Skip to footer

Error In Build On Device Android

I want to run my app on my real device Android but I receive this error: Running command: D:\WebStorm\Path\platforms\android\cordova\run.bat ANDROID_HOME=C:\Program Files (x86)\And

Solution 1:

It is seems be issue with proxy only. You can set proxy in two ways.

  1. Create/Edit gradle.properties @ c:\Users\<username>\.gradle\

OR

  1. Goto your project location and do the same as above

Example : platforms/android/gradle.properities

  1. Write below content in file
systemProp.http.proxyHost=proxyhost
systemProp.http.proxyPort=8080systemProp.http.proxyUser=username
systemProp.http.proxyPassword=pwd
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=proxyhost
systemProp.https.proxyPort=8080systemProp.https.proxyUser=username
systemProp.https.proxyPassword=pwd
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

Solution 2:

This link helped me: http://forum.ionicframework.com/t/proxy-error-when-downloading-gradle-zip-during-ionic-emulate-android/31701

To find .gradle, go to your user folder (default is c:\Users\<your login>). In case gradle.properties is not existing, simply create one

Solution 3:

Looking at your stacktrace it seems to be some kind of connectivity problem. Is your computer is using any proxy to connect to network? if yes then that have to be configured for your build tool as well. As i can see it is just trying to download gradle-2.2.1-all.zip and it is failing due to connection problem.

Answer : Steps to configure proxy in nodejs

npm config set proxy http://proxy.company.com:8080

npm config set https-proxy http://proxy.company.com:8080

Hope that information helps you.

Regards Himanshu

Post a Comment for "Error In Build On Device Android"