After selecting “Profile or Debug APK…” to open an existing APK, pressing the “Debug” button gets us to the “Edit Configuration“ windows with the “Error: Please select Android SDK” message.
If we still select “Debug”, and then select “Continue Anyway” in the “Change Configuration Settings” windows, the error notification from the main window is “Error running ‘com.appname’: No JDK specified for module ‘com. appname’”.
I found the solution for myself. 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, ‘9.0.1 (java version “9.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 27 Platform (java version “9.0.1”)’) Project Settings -> Modules (tab)
If the application is debuggable, pressing the “Debug” button will bring up the Android emulator selection windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With