If the developer's system uses a proxy to access the Internet, then Android apps will fail to build as of Titanium 7.0.2.
Steps to Reproduce:
- Delete the following folder on Mac, if it exists: ~/.gradle/caches
- Set up the machine to access the Internet via a proxy.
- Configure the proxy settings in Appcelerator Studio via its "Proxy Setup" window or via the CLI's "appc config set proxyServer".
- Attempt to do an Android build.
The build fails with follow logged errors...
A new "gradle" build step has been added to Titanium 7.0.2 to perform ProGuard and multidexing apps. Gradle is failing to download its module(s) from maven repositories since it is not configured to work through a proxy.
Developers currently have to configure Titanium/Appc to use a proxy according to our docs here...
When the Titanium build system generates the "gradle-wrapper.properties" file, it should add the CLI's proxy settings to that gradle property file as well. Gradle documents these proxy settings here...
Titanium developers can work-around this issue by configuring a global "gradle.properties" file with these proxy settings according to the docs here...
On Mac, the global file goes here...
On Windows, the global file goes here...