title: You have not accepted the license agreements of the following SDK components
body: <p>I downloaded the latest Android SDK tools version 24.4.1. I used the command line to install SDKs. I typed <code>y</code> when asked </p>
  
  <blockquote>
    <p>Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: y
    after that install succeeded.</p>
  </blockquote>
  
  <p>But when using Gradle 3.1 to build, the follows shows up </p>
  
  <blockquote>
    <p>You have not accepted the license agreements of the following SDK components:
      [Android SDK Platform 23, Android SDK Build-Tools 23.0.1].
      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>I checked <code>~/.android</code> and <code>/opt/android-sdk</code> where Android tools are put. Neither contain folder named <code>licenses</code>.</p>