When I start my project, I found that the module is an error, then I find that I found the error . "Warning: for the module" Myproject "there is no JDK when my project starts.", VI setting JAVA_HOME and JDK_HOME in my path. Hope Anyone can share your idea?
JAVA_HOME
JDK_HOME
this happened to me when I uninstalled jdk and installed a new one, because the project still saw the old one as invalid, but could not change, so right-click on its module → Open module settings → and select “Compile Sdk version” .
Go to “File-> Project Structure-> SDK Location and check the path to determine the location of the SDK and JDK. If it does not set the correct path. Then it will work.
On Linux, I solved this by deleting all folders with names starting with ".AndroidStudio" in my home directory, and then restarted Android Studio.
Gradle sync fixed this issue for me.
Source: https://habr.com/ru/post/986861/More articles:Matlab: how to represent a real number as binary - matlabHow to use Actual React select box - react-nativeCakePHP 3.x: how to change a validation rule on the fly - validationHow do I know if a website is working? - javascriptIterate with hasNext () and next () over an asynchronously generated stream of elements - javaHow to set increment value for Y axis in MPAndroidChart - androidHow to run a shell command in insecure verification mode? - gitThreads in Java 8: simple solution for using parallelstream () in a cluster? - javaMoving from a static configuration to a dynamic configuration - haskellDynamically generate Haskell types at runtime? - typesAll Articles