adventworks / hosted-pool-images

10 stars 4 forks source link

not accepted the license agreements of the Android SDK Platform 26 #2

Open ovovchak opened 7 years ago

ovovchak commented 7 years ago

We use VSTS for building our Android app. Currently we're blocked cause of license agreement for Android haven't been accepted.

A problem occurred configuring project ':app'. You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26, Android SDK Build-Tools 26.0.2]. 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 http://d.android.com/r/studio-ui/export-licenses.html BUILD FAILED in 1m 27s

I can see the list of software updated 5 days ago for branch 2017.10.01 without this SDK version(with SDK 25 and build tools 25.0.2 as last). My questions - is there any chance you update agent in nearest future? I can see in docs from master branch that you've already done that, assume you haven't yet deployed that

andershermansen commented 7 years ago

I solved this by running a powershell task with the following script will update the license file. Check you local file for content of which license you have accepted.

New-Item -ItemType Directory -Path "C:\java\androidsdk\android-sdk\licenses"

New-Item -Name 'android-sdk-license' -ItemType File -Value '8933bad161af4178b1185d1a37fbf41ea5269c55' -Path "C:\java\androidsdk\android-sdk\licenses"

Get-Content "C:\java\androidsdk\android-sdk\licenses\android-sdk-license"
smozhaykin commented 6 years ago

Possible solution is described here