Automatically accept all SDK licences

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

    As of July 2019, the easiest method is to use: flutter doctor --android-licenses in the command prompt.

    It proceeds to display the unaccepted T&C of SDKs one by one and you're given option to choose 'y/n'. Choose y for all.

    Alternately, when you run flutter doctor, it will run Android toolchain diagnostics which displays how many licenses are not yet accepted, and suggests you to run it with the --android-licenses flag.

提交回复
热议问题