It may be worth trying the Gradle proxy settings if your network uses a proxy for internet access.
You can find details on how to do this in the Mendix documentation.
https://docs.mendix.com/refguide/managed-dependencies/#gradle-proxy-settings
Good luck!