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

后端 未结 10 1497
北恋
北恋 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:24

    Note for Windows 64 bit users, the JDK has to be the x86 version not the x64 version.

    E.g. C:\Program Files (x86)\Java\jdk1.8.0_111

    0 讨论(0)
  • 2020-11-28 12:25

    Kaloyan you can find the setting for the Java SKD under Tools->Options and the click on Xamarin in the Options list, then select Android Settings. I installed the latest Java version (8.0.111) and then did a clean on my project and it runs fine now with no errors. Thank you everyone for your posts!

    0 讨论(0)
  • 2020-11-28 12:28

    Delete bin folder and obj folder and run the project it will be work fine

    0 讨论(0)
  • 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!

    0 讨论(0)
提交回复
热议问题