Android SDK Download as Part of Gradle Build

Viewed 1745

I am trying build an Android app with Jenkins and I have little control over Jenkins' slave machines.

In order to build the app I need the Android SDK installed on the slave, otherwise I get as expected:

"SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable."

That being the case, can gradle be configured to download the SDK as part of the build process and use it as a normal dependency?

Does this even make sense?

Thanks for the help.

2 Answers
Related