Skip to main content
added 152 characters in body
Source Link
Priyansh jain
  • 1.5k
  • 1
  • 15
  • 20

While building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.

    Open android studio.

  2. Open SDK Manager (refer image below):

    Open SDK Manager (For Old Android Studio): For older version of Android studio

    enter image description here
  3. Open SDK Manager (For New Android Studio): For newee version of Android studio

  4. Select SDK tools inside it in bar.

  5. Tick the option Android SDK Command-line Tools (latest)

  6. Apply it.

  7. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.

  1. Select SDK tools inside it in bar.
  2. Tick the option Android SDK Command-line Tools (latest)
  3. Apply it.
  4. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.

While building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.
  2. Open SDK Manager (refer image below): enter image description here
  1. Select SDK tools inside it in bar.
  2. Tick the option Android SDK Command-line Tools (latest)
  3. Apply it.
  4. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.

While building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.

  2. Open SDK Manager (For Old Android Studio): For older version of Android studio

  3. Open SDK Manager (For New Android Studio): For newee version of Android studio

  4. Select SDK tools inside it in bar.

  5. Tick the option Android SDK Command-line Tools (latest)

  6. Apply it.

  7. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.

deleted 22 characters in body
Source Link
Priyansh jain
  • 1.5k
  • 1
  • 15
  • 20

I was using macOS and whileWhile building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.
  2. Open SDK Manager (refer image below): enter image description here
  1. Select SDK tools inside it in bar.
  2. Tick the option Android SDK Command-line Tools (latest)
  3. Apply it.
  4. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.

I was using macOS and while building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.
  2. Open SDK Manager (refer image below): enter image description here
  1. Select SDK tools inside it in bar.
  2. Tick the option Android SDK Command-line Tools (latest)
  3. Apply it.
  4. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.

While building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.
  2. Open SDK Manager (refer image below): enter image description here
  1. Select SDK tools inside it in bar.
  2. Tick the option Android SDK Command-line Tools (latest)
  3. Apply it.
  4. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.
Source Link
Priyansh jain
  • 1.5k
  • 1
  • 15
  • 20

I was using macOS and while building the flutter application an error occurred saying android sdk licenses not accepted. So, while accepting the license this error occurred.

Reason for this error in my case was I haven't installed sdkmanager command line tools which is required to accept the license.

So, to install command line tools easiest way is:

  1. Open android studio.
  2. Open SDK Manager (refer image below): enter image description here
  1. Select SDK tools inside it in bar.
  2. Tick the option Android SDK Command-line Tools (latest)
  3. Apply it.
  4. Run flutter doctor -android-licenses if using flutter or you can continue with the process where the error occurred.