Flutter.io Android License Status Unknown

前端 未结 30 1115
情歌与酒
情歌与酒 2020-11-27 12:29

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3) >>• Android SDK a ..\\Android\\sdk • Android NDK location not configured (optiona

30条回答
  •  抹茶落季
    2020-11-27 13:23

    Refer--https://robbinespu.gitlab.io/blog/2020/03/03/flutter-issue-fixed-android-license-status-unknown-on-windows/

    So here the solution, open your SDK manager then uncheck Hide Obsolete Packages

    Now you’ll see Android SDK Tools (Obsolete) 26.1.1 appears. Tick that package and hit apply button then ok button. it will download sdk. then restart Android studio

    Nice, now if you run flutter doctor, you should get positive result as below

    PS D:\Workplace\flutter_projects> flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.657], locale en-MY)
    
    [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    [√] Android Studio (version 3.6)
    [√] VS Code (version 1.42.1)
    [√] Connected device (1 available)
    
    • No issues found!
    
    PS D:\Workplace\flutter_projects> flutter doctor --android-licenses -v
    All SDK package licenses accepted.======] 100% Computing updates...
    

    Run flutter doctor --android-licenses and enter Y when is asked

    if needed we can download package manually here https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip (for Windows user). Hope this tutorial help people who looking for solution

提交回复
热议问题