Ionic Run Android:线程中的异常;“主要”;

Ionic Run Android:线程中的异常;“主要”;,android,cordova,ionic-framework,build,Android,Cordova,Ionic Framework,Build,我正在我公司的代理服务器下构建离子混合应用程序。在我运行android之后。它在线程“main”中显示异常 java.lang.RuntimeException:java.net.ConnectException:连接超时:连接 我找到了解决方案,因为我在公司代理的背后工作。我必须在platform/android中配置gradle.properties文件夹,如下所示 systemProp.http.proxyPort= systemProp.http.proxyUser= systemPro

我正在我公司的代理服务器下构建离子混合应用程序。在我运行android之后。它在线程“main”中显示异常 java.lang.RuntimeException:java.net.ConnectException:连接超时:连接


我找到了解决方案,因为我在公司代理的背后工作。我必须在platform/android中配置gradle.properties文件夹,如下所示

systemProp.http.proxyPort=
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.https.proxyPassword=
systemProp.https.proxyHost=
systemProp.http.proxyHost=
systemProp.https.proxyPort=
systemProp.https.proxyUser=

不存在创建gradle.properties文件的需要。这也可以在路径c:\Users\\.gradle中全局设置\