Open Android
Studio>File>Settings>Appearance &
Behaviour>System Settings>Android SDK
and select the SDK Tools tab. Uncheck,
Hide Obselete Packages and check, Show
Package Details (Bottom right on
page). Check, NDK (Side by
side)>21.1.6352462, and check,
CMake>3.10.2.4988404 Hit apply, then,
ok, and exit AS.
Hey guys, I didn’t find here a relevant answer yet so I’m adding my two cents to the discussion.
I can confirm that if you see some nonsense error message like /Microsoft was unexpected at this time it is most probably related to the spaces or special characters in your PATH environmental variable. The script is attempting to parse the paths by hand and fails to enclose the result in double quotes which thrashes the PATH effectively.
If you don’t want to randomly uninstall software from your system without much explanation of the real issue and if you are not afraid of modifying the epics SetupAndroid.bat script you can fix it with following:
Before
line about 52: FOR /F "tokens=2*" %%A IN ('REG.exe query "%KEY_NAME%" /v "%VALUE_NAME%"') DO (set USERPATH=%%B)
After
line about 52: FOR /F "tokens=2*" %%A IN ('REG.exe query "%KEY_NAME%" /v "%VALUE_NAME%"') DO (set USERPATH="%%B")
Note: Just add quotes to the last bit.
Keep in mind that I can’t warrant that this will work for everyone but it is my workaround for 4.25.3-release. This might be already fixed in more up-to-date versions. Hope someone finds it useful. Cheers!