“Failed to install the following Android SDK packages as some licences have not been accepted” error

前端 未结 17 1220
野性不改
野性不改 2020-12-02 08:08

I am getting this error in jitpack, I\'ve tried everything on the internet. Below is my error

Failed to install the following Android SDK packages as some l         


        
17条回答
  •  [愿得一人]
    2020-12-02 08:34

    You need to accept the licences before building.

    According to Android SDK docs you can use the following command depending on the sdkmanager location: Docs on --licenses option seems to be missing though.

    yes | sdkmanager --licenses
    

    GNU/Linux Distributions:

    yes | ~/Android/Sdk/tools/bin/sdkmanager --licenses
    

    macOS:

    export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home
    yes | ~/Library/Android/sdk/tools/bin/sdkmanager --licenses
    

    Windows:

    %ANDROID_HOME%/tools/bin/sdkmanager --licenses
    

    Flutter:

    > flutter doctor --android-licenses
    

提交回复
热议问题