When running as Linux, a message appears: rendering error: java 1.8 or higher is required for android marsrallow

but when I write java -version in the console, it prints java 1.8.0. what is wrong here and how to fix it?

  • If you see this in the graphic editor of markup - then do not worry. Everything is fine with you, this is just a previewer not working. You can not fix it, and it is not necessary. Just do not use it. - Yuriy SPb
  • vk.com/wall-129234927_24 I have nothing, only the inscription - veselcraft
  • Photo of the screen? .. Seriously? .. Did you hear about the screenshots? .. And tell me more about the problem - does your AS not work at all or just the markup editor? - Yuriy SPb
  • It was at night, I had to sleep. so only a camera - veselcraft

1 answer 1

In the studio menu:

File-> Project Structure -> SDK Location -> JDK Location -> вводим путь к JDK 8 
  • the error still remained, but I indicated the correct path to the jre ... Is there a teamViewer? - veselcraft
  • @veselcraft, sorry, once. Try restarting the studio now. - Vladyslav Matviienko
  • I have restarted it, too, the error - veselcraft