I did solve this by starting andriod studios and going to config than SDK manager-> SDK tools and installed the latest CMD tool.
Then restarted my pc and opened the SetupAndroid.bat file as admin.
1 Like
Same issue. Fixed by change line
set SDKMANAGER=%STUDIO_SDK_PATH%\tools\bin\sdkmanager.bat
to
set SDKMANAGER=C:\Users\USER_NAME\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat
USER_NAME - is your name
2 Likes