close

[Solved] Flutter.io Android License Status Unknown

Hello Guys How are you all? Hope You all are fine. When I was trying to run the flutter doctor command and I get the following error in my stack track. Flutter.io Android License Status Unknown in a flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How Flutter.io Android License Status Unknown Error Occurs ?

I am running the flutter doctor command after just installing flutter in my system. And I am facing the below error in my terminal Flutter.io Android License Status Unknown.

>[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    >>• Android SDK a ..\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    X Android license status unknown.

How to Solve Flutter.io Android License Status Unknown Error?

  1. How to Solve Flutter.io Android License Status Unknown Error?

    To resolve Flutter.io Android License Status Unknown issue try running flutter doctor –android-licenses This should prompt you to accept licenses (it may ask you first, in case just type Y and press enters – although it should tell you that). If you updated the android SDK, the licenses may have changed Or If you are using SDK the first time then you have to accept its license.

  2. Flutter.io Android License Status Unknown

    To resolve Flutter.io Android License Status Unknown issue try running flutter doctor –android-licenses This should prompt you to accept licenses (it may ask you first, in case just type Y and press enters – although it should tell you that). If you updated the android SDK, the licenses may have changed Or If you are using SDK the first time then you have to accept its license.

Solution 1: install the SDK command line tool

  • To resolve this Issue Just install the SDK command line tool(latest) the below in android studio.
Flutter.io Android License Status Unknown,
Android License Status Unknown,
Android License Status Unknown flutter,
flutter.io android license status unknown,
android license status unknown error
  • After Installing SDK Command line tool just run flutter doctor –android-licenses command in terminal.
flutter doctor --android-licenses
  • and type Y when needed to accept the licenses.
  • That’s It.

Solution 2: uncheck hide obsolete packages

The right solution would be if you have android studio installed then

  1. open SDK manager.
  2. under SDK tools uncheck hide obsolete packages at the bottom.
  3. then you should see an option called Android SDK Tools (Obsolete).
  4. check it and apply and let the studio download the package.
  5. once done run the command flutter doctor and it should now prompt you to run flutter doctor --android-licenses once you run the license command accept all licenses by hitting Y and it should solve the problem.

Solution 3: Reinstall Android SDK Tools

  1. Delete the “Android SDK Tools” from SDK Manager
  2. Reinstall it by first deselecting the “Hide Obsolete Packages” and then select “Android SDK Tools (Obsolete)”, install it.
  3. run flutter doctor --android-licenses and select y for the prompts
  4. run flutter doctor and everything will be fine!!!!

It’s high time flutter come as an installation package ensuring no configuration setup.

Summery

So, It’s All About This Error. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.

Also Check Out Below Tutorials

Leave a Comment