I am trying to build with the new Gradle system and it works, but in our company there is a network proxy and Gradle fails to build the project with a timeout exception when trying to reach and dowload some files:
stderr[
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project ‘gradleOut’.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
]
Is there any way to specify the proxy in the whole Unity Editor environment, or add some kind of Gradle settings file in the Android plugins folder, or maybe possible add some pre build script, in order to specify the proxy host and port?
systemProp.http.proxyHost=127.0.0.1 // example ip proxy, change with your ip proxy, dont use http
systemProp.http.proxyPort=8080 // example port proxy, change with your port proxy
systemProp.https.proxyHost=127.0.0.1 // example ip proxy, change with your ip proxy, dont use https
systemProp.https.proxyPort=8080 // example port proxy, change with your port proxy
to gradle global config = current user’s gradle.properties
If you didn’t have file gradle.properties, make a new file.