No suitable API installation found

Hi, when I run ‘npx cap run android’ I get the following error. Any solution?

ERR_UNSUITABLE_API_INSTALLATION: No suitable API installation found.

Per the error message, it says to check the wiki for the error code.

It appears you are running an Android SDK version that is not supported.

ERR_UNSUITABLE_API_INSTALLATION
You are using an Android SDK that is not supported by native-run. Please, let us know by creating a new issue Issues · ionic-team/native-run · GitHub. As workaround you can downgrade your installed Android SDK. Latest supported version is SDK 30.

Quick workaround that was ok for me. Run first npx cap open, it will open the installed emulator in Android Studio. After this you ‘npx cap run’ will run ok.