

I was then able to run flutter doctor and follow the instructions to get flutter doctor to not identify any issues. Once I had done that, there was no longer a need to run -install "cmdline-tools latest" because the cmdline-tools latest had already been installed by Android Studio. However, as indicated here:, the solution was to use Android Studio to install the Android sdk Command-line Tools (Latest). Produced an exception: Exception in thread "main" : javax/xml/bind/annotation/XmlSchemaĪt .SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) However, I found that Java is included in Android Studio, so I ran: export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/Contents/Homeīut then /Users//Library/Android/sdk/tools/bin/sdkmanager -install "cmdline-tools latest" Please visit for information on installing Java.īased on posts such as this page, I reluctantly started looking at installing Java. Produced the error: The operation couldn’t be completed. I eventually found the path/to/sdkmanager, which was /Users//Library/Android/sdk/tools/bin/sdkmanagerīut then running /Users//Library/Android/sdk/tools/bin/sdkmanager -install "cmdline-tools latest"

Run `path/to/sdkmanager -install "cmdline-tools latest"` However, flutter doctor produced an issue: ✗ cmdline-tools component is missing I went through the steps to install flutter, including Android Studio. Use custom JDK for AndroidStudio basedir=%~dp0Ĭall the following commands did not use a custom JDK start "AndroidStudio" /I "%basedir%studio64.exe"Īpparently not. OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)Ĭreate C:\android-studio\studio-start.bat script. OpenJDK Runtime Environment (build 13.0.2+8) OpenJDK 64-Bit Server VM (build 11.0.11+822, mixed mode) OpenJDK Runtime Environment (build 11.0.11+822) I made a small studio-start.bat script to run Android Studio IDE on a custom Java JDK version.Īndroid Studio Bumblebee | 2021.1.1 Build #AI-21744, built on Januhas this embedded Java virtual machine. I did not want to create a global envvar STUDIO_JDK | JAVA_HOME in a control panel.

I wanted to test Android Studio on OpenJDK13 instead of an embedded jre11.
