Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.



Get Started Now!

Error: flutter doctor –android-licenses

Error Description

This error indicates that the version of the Java Runtime Environment you are using is too old to recognize the class file version of the SdkManagerCli. This is a common issue when newer versions of tools require updated Java versions.

Solution:

Install Android SDK Command-line Tools 8.0:

Open Android Studio. Navigate to Tools > SDK Manager. In the SDK Manager, select the SDK Tools tab. Check the box for Android SDK Command-line Tools (latest). Click on the checkbox next to the Show Package Details at the bottom right. You should see a list of versions for the Android SDK Command-line Tools. Look for version 8.0 and select it. Apply the changes and install the selected version.

Navigate to the cmdline-tools Folder:

Open Windows Explorer. Navigate to the folder where the Android SDK is installed. This is typically located at

C:\Users\<USER_NAME>\AppData\Local\Android\Sdk\cmdline-tools

Replace <USER_NAME> with your actual Windows username.

Rename the Folder:

Locate the folder named 8.0.Right-click on the folder and select Rename. Rename the folder to latest.

Run Flutter Doctor:

Open a terminal or command prompt. Run the following command:

flutter doctor --android-licenses

Related Posts

How to Change Android Emulator Camera to Webcam

Using a webcam with the Android Emulator allows developers to test camera features efficiently. Here’s how to set it up in a few easy steps. 1. Open…

Resolving the Emulator Architecture Mismatch Error

This error occurs when trying to run an ARM64 (arm64-v8a) system image on an x86_64 host. Below, we break down the problem and provide a step-by-step solution…

How to Find and Add Your Android App’s Play Store Link to a Website Button

Are you looking to direct users from your website to your Android app on the Google Play Store? A well-placed button that links to your app can…

Error in Android Development: “libandroid-emu-metrics.dll Not Found”

Error: “libandroid-emu-metrics.dll Not Found” Why Does This Happen? The “libandroid-emu-metrics.dll not found” error typically occurs due to one or more of the following reasons: Step-by-Step Solution: Verify…

How to build Android apk

Generate an APK or App Bundle for your app: You can generate an APK or App Bundle using the following command in the terminal: Step 1: Run…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x