Automatically accept all SDK licences

后端 未结 30 2228
感情败类
感情败类 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:21

    AndroidSDK can finally accept licenses.

    yes | sdkmanager --licenses
    

    EDIT:

    as pointed out in the comments by @MoOx, on macOS, you can do

    yes | sudo ~/Library/Android/sdk/tools/bin/sdkmanager --licenses

    as pointed out in the comments by @pho, @mikebridge and @ Noitidart on Windows, you can do

    cmd.exe /C"%ANDROID_HOME%\tools\bin\sdkmanager.bat --licenses"

    be sure to install java before

提交回复
热议问题