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

前端 未结 17 1238
野性不改
野性不改 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:43

    On Mac OS 10.15.1, I got the same error even after accepted all the licenses by running sdkmanager --licenses It worked after I updated the ANDROID_HOME path configuration in the ~/.bash_profile to the following

    export ANDROID_HOME=/Users/your_username/Library/Android/sdk
    export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
    export PATH=$PATH:~/Library/Android/sdk/platform-tools
    

    And reload the ~/.bash_profile

    source ~/.bash_profile 
    

提交回复
热议问题