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

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

    Tried this on Android Studio and it worked for me:

    Tools > SDK Manager (Make sure to check Show Packages below)

    SDK Platforms > Show Packages > Android - 28

    SDK Tools > Show Packages > 28.0.3

    0 讨论(0)
  • 2020-12-02 08:51

    In Android Studio go to Tools -> SDK Manager.

    Go to SDK Tools tab.

    Select the Android SDK Command-line Tools (latest) and download by pressing Apply.

    On Windows, you can find the sdkmanager.bat at

    C:\Users\[your_user]\AppData\Local\Android\Sdk\cmdline-tools\latest\bin

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-12-02 08:52

    in Windows OS go to your sdkmanager path then execute

    ./sdkmanager.bat --licenses
    

    You can find your sdkmanager in C:\Users\USER\AppData\Local\Android\Sdk\tools\bin

    To find your actual android SDK path follow the red marked area of the below picture

    0 讨论(0)
  • 2020-12-02 08:54

    use android-28 with build-tools at version 28.0.3; or build-tools at version 26.0.3.

    or try this: yes | sudo sdkmanager --licenses

    0 讨论(0)
提交回复
热议问题