title: Automatically accept all SDK licences
body: <p>Since gradle android plugins <a href="https://sites.google.com/a/android.com/tools/tech-docs/new-build-system" rel="noreferrer">2.2-alpha4</a>:</p>
  <blockquote>
  <p>Gradle will attempt to download missing SDK packages that a project
  depends on</p>
  </blockquote>
  <p>Which is amazingly cool and was know to be a <a href="https://github.com/JakeWharton/sdk-manager-plugin" rel="noreferrer">JakeWharton project</a>.</p>
  <p>But, to download the SDK library you need to: accept the license agreements or gradle tells you:</p>
  <blockquote>
  <p>You have not accepted the license agreements of the following SDK
  components: [Android SDK Build-Tools 24, Android SDK Platform 24].
  Before building your project, you need to accept the license
  agreements and complete the installation of the missing components
  using the Android Studio SDK Manager. Alternatively, to learn how to
  transfer the license agreements from one workstation to another, go to
  <a href="http://d.android.com/r/studio-ui/export-licenses.html" rel="noreferrer">http://d.android.com/r/studio-ui/export-licenses.html</a></p>
  </blockquote>
  <p>And this is a problem because I would love to install all sdk dependencies while doing a <code>gradle build</code>.</p>
  <p>I am looking for a solution to automatically accept all licenses. Maybe a gradle script ?
  Do you have any ideas ?</p>