'Android sdkmanager tool found, but failed to run' for flutter doctor --android-licenses
19:53 12 Jan 2023

I've been trying to setup flutter with android studio on my laptop (Windows 11), and as I tried to agree to the android licenses the below error occured : enter image description here

The first error in red says

'(C:\Users\jerry\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat): "ProcessException: Cannot find file specified'

Apologies for the Japanese.

Below are the SDK Platforms installed : enter image description here

Solutions attempted :

enter image description here

  • Reinstalling Android studio
  • Updating the sdkmanager enter image description here
  • Checking PATH variables (JAVA_HOME in the System Variables set to C:\Program Files\Java\jdk1.8.0_351)
  • Running the command myself, which has allowed me to agree to the licenses, however the issue persists with the android licenses when flutter doctor is run. Running the exact command

I've tried my best at scouring the internet for solutions, but any help would be much appreciated. I have made another question for the

" 'git rev-parse HEAD' is not recognized as an internal or external command"

error here : " 'git rev-parse HEAD ' is not recognized" error when flutter doctor, but still works normally? I'm not sure if the two issues are connected, but if someone can also assist me on that issue I'd be extremely grateful.

android android-sdk-manager flutter-doctor