Worked with the project, compiled, everything went as usual. Suddenly, when editing the code, something glitched (that is, I was not updated, and did not make the settings android studio, did not touch build.gradle) - and almost all the code became Red.
When you hover - offers "Setup JDK" - and when you click on it, opens the window "Configure SDK".
The necessary packages for compiling in my environment are installed, and "5 minutes ago" everything compiled with a bang.
What can be seen to correct this ailment?
What has been tried: 1) Launched all the latest updates offered. 2) I wrote JAVA_HOME D: \ android \ jdk ANDROID_HOME D: \ android \ sdk into the environment variables
3) Reinstalled JDk from x64 to x86 4) copied java.exe javaw.exe javaws.exe files to the C: \ Windows \ SysWOW64 folder