When I run my project, I found the module in error
then I click in founding an error "Warning:No JDK specified for module 'Myproject'.when run my project.",vI setting JAVA_HOME
and JDK_HOME
in my path. hope Anyone can share your idea?
it happened for me when I deleted the jdk and installed new one somehow the project kept seeing the old one as invalid but couldn't change, so right click on your module -> Open Module Settings -> and choose Compile Sdk Version.
Go to File->Project Structure->SDK Location and check if the path for SDK and JDK location specified by you is correct. If its not then set the correct path. Then It will work.
Run -> Edit configurations -> Select your build configuration -> JRE - change Default to one of actual JDK paths
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