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

后端 未结 17 1409
无人共我
无人共我 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:46

    There are several thing to remember when set the STUDIO_JDK on Mac OS:

    • by default Apple's Java 1.6 is used to start the Android Studio
    • when the STUDIO_JDK is set to Oracle's Java it will be used by the Android Studio to run

    The difference between two is that Apple's Java IMO provides nicer and better fonts antialiasing in the IDE.

    A reply here is referencing a bug in Android Studio regarding the fonts antialiasing. The ticket is already closed but still rendering is different for Apple Java and Oracle SDK (I have v1.8.0_102). And the former still has better perception than the last.

提交回复
热议问题