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

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

    Appears to be a bug at the momment: https://issuetracker.google.com/issues/123054726

    Solution that worked for me:

    Create a .travis.yml file in your project directory and copy these lines:

    before_script:
    - mkdir "$ANDROID_HOME/licenses" || true
    - echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" > "$ANDROID_HOME/licenses/android-sdk-license"
    

    Reference: https://github.com/square/RxIdler/pull/18/files

提交回复
热议问题