Chan Yoong Hon
Chan Yoong Hon

Reputation: 1812

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

Upvotes: 2

Views: 1069

Answers (1)

Chan Yoong Hon
Chan Yoong Hon

Reputation: 1812

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=

Upvotes: 2

Related Questions