Marcin Koziński Marcin Koziński - 1 year ago 156
Android Question

How to enable automatic download of missing Android SDK packages in Gradle

During Google I/O 2016's What's new in Android development tools a great new feature was quickly mentioned: Android Gradle plugin can now automatically download missing dependencies from Android SDK.

It's also mentioned in Android Gradle plugin 2.2.0-alpha4 release notes.

How do I enable it?

Answer Source

In file in your project's root folder add the following line:


Note: at the time of writing this option is experimental. It looks like so far it downloads missing build tools and platforms, but doesn't attempt to update repositories where the support libraries or Google Play Services libraries live according to a bug report/feature request.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download