My equal issue was a duplicate installation in two different folders.
check if the path in the environment settings is the same as the one using the link for android studio. In my case, the paths were as follows:
C:\Program Files\Android\Android Studio\bin
and
C:\Program Files (x86)\Android\android-sdk.
The latter was correct. Detected when the 'android' command was run, which opened
C:\Program Files (x86)\Android\android-sdk\sdk manager.exe
not
C:\Program Files\Android\Android Studio\bin\studio64.exe
Installed API versions have been declared "removed."
I also advise you to uninstall all versions of the Android API in this last one.
Vincent
source share