Tuesday, July 2, 2019

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



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



enter image description here



Also using latest build tools in Gradle.



android {
compileSdkVersion 'android-N'

buildToolsVersion 24.0.0 rc1
...
}


XML Error -



enter image description here


Answer



Set JDK_HOME and JAVA_HOME environment variables, in my case C:\Program Files\Java\jdk1.8.0_60.




enter image description here



Check Java version in Help > About. It should show the JRE version you just set.



enter image description here



That is it, now you can preview your layout in N.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...