Android N requires the IDE to be running with Java 1.8 or later?

后端 未结 17 1404
无人共我
无人共我 2020-11-27 10:58

My XML layout is not rendering with this error message. I am already using Java 8.

Also using latest build tools in Gradle.

and         


        
17条回答
  •  [愿得一人]
    2020-11-27 11:34

    I have solved it in these way.(AS+MAC OX El Capitan)

    1. Updating SDK Tools>Android SDK platform tools
    2. Go to Help>Edit Custom Properties> A dialog will prompt(press yes) then write

      JVMVersion=1.8 
      

    Then close Android Studio fully and reload the project

提交回复
热议问题