How to solve: Android license status unknown and also Android sdkmanager tool not found?

8,289

Solution 1

Follow these steps

  • Open the Android Studio SDK Manager
  • In the Android SDK tab, uncheck Hide Obsolete Packages
  • Check Android SDK Tools (Obsolete)

enter image description here

Source: https://flutter.dev/docs/get-started/install/macos#install-android-studio

Solution 2

download https://developer.android.com/studio#command-tools and extract in

C:\Users\Zheny\AppData\Local\Android\Sdk folder

and set path like this

C:\Users\Zheny\AppData\Local\Android\Sdk\tools\bin

restart power-shell or command prompt and execute flutter doctor --android-licenses

Solution 3

follow these steps:

  1. open SDK Manager
  2. go to SDK tools
  3. Delete the "Android SDK Tools" from SDK Manager
  4. first deselect the "Hide Obsolete Packages" and then select "Android SDK Tools (Obsolete)", install it.

  5. run flutter doctor --android-licenses and select y for the prompts.

run flutter doctor and everything will be fine!!!!

Share:
8,289
Admin
Author by

Admin

Updated on December 18, 2022

Comments

  • Admin
    Admin over 1 year

    Tried everything i had found(github issues, SO questions) . Also tried to re-install Android SDK(29) from Android Studio.

    1. flutter doctor

      C:\Users\Zheny>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.693], locale ru-RU)
      [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
          X Android license status unknown.
            Try re-installing or updating your Android SDK Manager.
            See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed      instructions.
      [√] Android Studio (version 3.6)
      [!] VS Code (version 1.42.1)
          X Flutter extension not installed; install from
            https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
      [!] Connected device
          ! No devices available
      ! Doctor found issues in 3 categories.
      
    2. flutter doctor --android-licenses

      Android sdkmanager tool not found 
      (C:\Users\Zheny\AppData\Local\Android\Sdk\tools\bin\sdkmanager).
      Try re-installing or updating your Android SDK,
      visit https://flutter.dev/setup/#android-setup for detailed instructions.
      
    3. flutter doctor -v

      C:\Users\Zheny>flutter doctor -v
      [√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.693], locale ru-RU)
      • Flutter version 1.12.13+hotfix.8 at C:\Flutter SDK\flutter
      • Framework revision 0b8abb4724 (2 weeks ago), 2020-02-11 11:44:36 -0800
      • Engine revision e1e6ced81d
      • Dart version 2.7.0
      
      [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
      • Android SDK at C:\Users\Zheny\AppData\Local\Android\Sdk
      • Android NDK location not configured (optional; useful for native profiling support)
      • Platform android-29, build-tools 29.0.3
      • ANDROID_HOME = C:\Users\Zheny\AppData\Local\Android\Sdk
      • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
      • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
      X Android license status unknown.
        Try re-installing or updating your Android SDK Manager.
        See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
      
      [√] Android Studio (version 3.6)
      • Android Studio at C:\Program Files\Android\Android Studio
      • Flutter plugin version 44.0.2
      • Dart plugin version 192.7761
      • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
      
      [!] VS Code (version 1.42.1)
      • VS Code at C:\Users\Zheny\AppData\Local\Programs\Microsoft VS Code
      X Flutter extension not installed; install from
        https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
      
      [!] Connected device
      ! No devices available
      
      ! Doctor found issues in 3 categories.
      
    4. Screens of my PATH's and folders enter image description here enter image description here enter image description here

    How can i sovle this problem?

  • Gabriel Patricio Bonilla
    Gabriel Patricio Bonilla about 3 years
    I didn't have installed Android SDK Command-line Tools (latest).