警告主要版本52比51更新,该编译器支持的最高主要版本 [英] Warning major version 52 is newer than 51, the highest major version supported by this compiler

查看:397
本文介绍了警告主要版本52比51更新,该编译器支持的最高主要版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我是超级新手,开始在IT公司实习.我在Xamarin上安装了VS.我面临的问题非常令人沮丧.因此,即使我创建了一个空项目,我也无法编译它并得到如下错误:

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 project I can't compile it and get error like this :

严重性代码描述项目文件行抑制状态 警告主要版本52比该编译器支持的最高主要版本51更新.

Severity Code Description Project File Line Suppression State Warning major version 52 is newer than 51, the highest major version supported by this compiler.

我在整个Google上搜索,问了这么多人,但仍然无法解决我的问题.如果有人可以通过Skype或团队合作帮助我,我将非常感激.我的Skype:Toniterdal,随时添加我.

I searched all over google and asked so many people and still no fix of my problem. If anybody can help me via skype or teamwiever i will APPRECIATE so much. My skype: toniterdal , feel free to add me.

推荐答案

我遇到了同样的问题,并且把头发扯了.我已经安装了JDK版本8,但是这些警告并不会消失,最终它们产生了构建中断错误.

I was having the same issue, and tearing my hair out. I had the JDK Version 8 installed, but these warnings wouldn't go away, and eventually they generated a build-breaking error.

当我转到工具->选项-> Xamarin并查看Android设置时,Java开发工具包位置指向Program Files (x86)中的jdk.1.7.xxxx.

When I went to Tools -> Options -> Xamarin, and looked at the Android Settings, the Java Development Kit Location was pointing to jdk.1.7.xxxx, in Program Files (x86).

我在Program Files中将其更改为1.8.0_101.然后,我重新启动Visual Studio,并再次发生相同的错误. Visual Studio会以某种方式检测到JDK的版本7,并自动将其指向该版本.

I changed it to 1.8.0_101, in Program Files. Then I restarted Visual Studio, and the same error happened again. Somehow, Visual Studio was detecting Version 7 of the JDK and pointing it to that automatically.

因此,解决方案非常简单.除了安装JDK的版本8和 UNINSTALL JDK的版本7..我这样做后,Xamarin的表现就更好了.此步骤解决了许多看似无关的问题.

So the solution turned out to be very simple. As well as installing Version 8 of the JDK, UNINSTALL Version 7 of the JDK. As soon as I did that, Xamarin turned out to be much better behaved. This step solved a whole bunch of seemingly unrelated problems.

这篇关于警告主要版本52比51更新,该编译器支持的最高主要版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆