You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unity is pretty stupid when it comes to building for android behind a proxy (without any access to the internet without the proxy). See also this thread:
One needs to edit the sdkmanager script file directly in order to make it work, no environment variable setting works for passing those proxy variables into the sdkmanager that is called during the android build.
Android builds behind a proxy eventually succeed but it takes roughly 6 times longer (60 minutes vs 11) with all the extra time spent waiting for connection timeouts.
Context
Unity is pretty stupid when it comes to building for android behind a proxy (without any access to the internet without the proxy). See also this thread:
https://forum.unity.com/threads/request-proxy-settings-for-unity-hub.515447/
One needs to edit the sdkmanager script file directly in order to make it work, no environment variable setting works for passing those proxy variables into the sdkmanager that is called during the android build.
Android builds behind a proxy eventually succeed but it takes roughly 6 times longer (60 minutes vs 11) with all the extra time spent waiting for connection timeouts.
Suggested solution
Add the following to the Dockerfile for Unity:
Also add something to the init files for android that does:
If you'd like I can provide a pull request that does both of these things.
Considered alternatives
Manually doing that, which is what we are doing now.
The text was updated successfully, but these errors were encountered: