I would like to install the Android SDK Command-Line tools from the powershell. I could not find any way to pass “yes” to accept automatically the licenses for Android SDK command line tools. Here is:
Thank you. It works properly in the PowerShell of my Windows machine! However, if I run this command in the GitLab runner for Windows, it is not executed as it is expected. I still receive:
7 of 7 SDK package licenses not accepted.
Review licenses that have not been accepted (y/N)?
My Windows’ PowerShell version is 5.1.19041.1682 and GitLab’s runner version is 5.1.17763.1007 (execute $host command).
I tried to delay the execution of the command playing with Start-Sleep arguments ([-Seconds], increase value for -Milliseconds and for -Duration), but without any success.