Warning major version 52 is newer than 51, the highest major version supported by this compiler

后端 未结 10 1587
北恋
北恋 2020-11-28 12:02

Basicly I\'m super newbie and started internship in IT company. I installed VS with Xamarin. The problem that I\'m facing is very frustrating. So even when i create empty pr

10条回答
  •  盖世英雄少女心
    2020-11-28 12:28

    This is how I solved the same issue I faced today:

    From Control Panel > Uninstall a Program > uninstall the older Java versions which are on your system. You should only have Jdk 1.8 and Jre 1.8 on your system.

    Now go to C:/Program Files/Java and delete all older java versions. If you have setup your JDK 1.8 and JRE 8 in C:/Program Files (x86)/Java then cut paste them into C:/Program Files/Java folder.

    Then I restarted IntelliJ IDE which I am using. It automatically asked to update the path of SDK. Update the path to point to Jdk 1.8 and then I recompiled my files and things started working well.

    Hope it works for you too!

提交回复
热议问题