chan yoonghon chan yoonghon -4 years ago 248
Android Question

Ionic Run Android: Exception in thread "main"

I am building Ionic hybrid application in my company under proxy server. After I run android. It shows Exception in thread "main"
java.lang.RuntimeException: java.net.ConnectException: Connection timed out: connect

enter image description here

Answer Source

I found the solution because I am working behind of company proxy. I have to configure of my gradle.properties folder in platform/android as following

systemProp.http.proxyPort=
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.https.proxyPassword=
systemProp.https.proxyHost=
systemProp.http.proxyHost=
systemProp.https.proxyPort=
systemProp.https.proxyUser=
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download