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

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

    If you are using flutter go with the following steps

    1.open the command prompt
    

    Then the following command

    2.C:\Users\niroshan>flutter doctor
    

    And you will see the issues as follows

    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 1.22.2, on Microsoft Windows [Version 10.0.17763.1339], locale en-US)
    
    [!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
        X Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    [!] Android Studio (version 4.1.0)
        X Flutter plugin not installed; this adds Flutter specific functionality.
        X Dart plugin not installed; this adds Dart specific functionality.
    [√] VS Code (version 1.50.1)
    [!] Connected device
        ! No devices available
    
    ! Doctor found issues in 3 categories.
    

    Actually what you have to run is the below command

    C:\Users\niroshan>flutter doctor --android-licenses
    

提交回复
热议问题