Automatically accept all SDK licences

后端 未结 30 2136
感情败类
感情败类 2020-11-22 16:35

Since gradle android plugins 2.2-alpha4:

Gradle will attempt to download missing SDK packages that a project depends on

Which

30条回答
  •  执笔经年
    2020-11-22 17:15

    In Windows PowerShell, you can do

    for($i=0;$i -lt 30;$i++) { $response += "y`n"}; $response | sdkmanager --licenses
    

    This is much more flexible and requires zero manual intervention. The 30 number is arbitrary, should be enough to cover the number of license acceptances, but can be increased if needed

提交回复
热议问题