Solution. There are 2 places to check if the SDK was set correctly.
- File-> Project Structure… -> Project Settings -> Project Ensure that Java SDK is set under “Project SDK”. (for example, ‘12.0.1 (java version “12.0.1”)’) Project Settings -> Project (tab)
- File-> Project Structure… -> Project Settings -> Modules -> -> Dependencies Ensure that your installed Android SDK platform is set under “Module SDK”. (for example, Android API 31 Platform (java version “12.0.1”)’) Project Settings -> Modules (tab). If <NoSDK> is shown, then click on edit and <NoSDK> should be removed. Apply and save.
If the application is debuggable, pressing the “Debug” button will bring up the Android emulator selection windows.