Flutter Doctor --android-licenses : Exception in thread main java.lang.NoClassDefFoundError
Installing Android SDK Command-line tools from Android SDK Manager did the job for me.
- Open Android Studio
- Tools > SDK Manager
- From the left choose, Appearance & Behavior > System Settings > Android SDK
- Select SDK Tools from the top menu
- Check Android SDK Command-line tools and click 'apply'.
How to fix flutter doctor --android-licenses java error? Without android studio
The problem is happened because when running flutter doctor --android-licenses
, it implicitly running the sdk tools which is only works with JDK 8
(afaik, correct me if I'm wrong).
So, you need to install JDK 8
and set your JAVA_HOME
to your JDK 8
installation path.
Related Topics
Java Regex Capturing Groups Indexes
How to Properly Express Jpql "Join Fetch" with "Where" Clause as JPA 2 Criteriaquery
Calculating All of the Subsets of a Set of Numbers
Spring Autowiring Using @Configurable
Difference Between & and && in Java
Multiple Java Versions Running Concurrently Under Windows
How to Test to See If a Double Is Equal to Nan
Run Java Application at Windows Startup
How to Validate an Xml File Using Java with an Xsd Having an Include
Is It Safe to Construct Swing/Awt Widgets Not on the Event Dispatch Thread
Validate Jaxbelement in JPA/Jax-Rs Web Service
Pdfbox 2.0.2 > Calling of Pagedrawer.Processpage Method Caught Exceptions