title: License not accepted for Android Build tools 26.0.2
body: <p>I uploaded a new project to Jenkins that has compileSdkVersion as 26 and targetSdkVersion 25. I have accepted all licenses for the sdk with the below command:</p>
  
  <pre><code> ./sdkmanager --licenses
  </code></pre>
  
  <p>Everything runs all good on my PC, but when I build on Jenkins it throws below error: </p>
  
  <pre><code>Starting a Gradle Daemon (subsequent builds will be faster)
  Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
  Configuration 'testCompile' in project ':app' is deprecated. Use'testImplementation' instead.
  Configuration 'provided' in project ':app' is deprecated. Use 'compileOnly' instead.
  Checking the license for package Android SDK Build-Tools 26.0.2 in 
  /Users/Shared/Jenkins/Library/Android/sdk/licenses
  
  Warning: License for package Android SDK Build-Tools 26.0.2 not 
  accepted.
  Checking the license for package Android SDK Platform 26 in 
  /Users/Shared/Jenkins/Library/Android/sdk/licenses
  Warning: License for package Android SDK Platform 26 not accepted.
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring project ':app'.
  &gt; You have not accepted the license agreements of the following SDK 
  components:
   [Android SDK Platform 26, Android SDK Build-Tools 26.0.2].
  </code></pre>
  
  <p>I ran the same command to accept licenses on the Jenkins machine, and it said all the licenses have been accepted. I am not sure what is going wrong.</p>
  
  <p>Can someone help?</p>
  
  <p>Thanks</p>