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

  • Try rebuilding the project. - Engineman
  • Rebuild did not help. By the way, not all imports are now red, while I am trying to solve the problem, imports from the import section android.support.v4. ***** are no longer red, the rest are red: import android.view. ***** import android.os. ***** import android.widget. ***** import org.jsoup. ***** import java.io. ***** import java.util. ***** - Ivan Ivanov
  • opened previous projects, they are also now painted ... it's not about the settings of a particular project. Apparently something happened to the environment. - Ivan Ivanov
  • one
    Try clearing the studio cache and restart: File -> Invalidate Caches / Restart - Barmaley
  • understand you, thanks! I will demolish - Ivan Ivanov

0