AppEnginePlugin:不支持MAJOR.MINOR版本51.0 - AppEngine上1.9.17 [英] AppEnginePlugin : Unsupported major.minor version 51.0 - appengine 1.9.17

查看:219
本文介绍了AppEnginePlugin:不支持MAJOR.MINOR版本51.0 - AppEngine上1.9.17的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新到Android工作室1.0 RC之后,我得到这个错误:

  AppEnginePlugin:不支持MAJOR.MINOR版本51.0

由于AppEngine上与Java编译1.7为什么它说,它不支持?

下面是我的Java版本:

  Java版本1.7.0_67
的Java(TM)SE运行时环境(建立1.7.0_67-B01)
Java的热点(TM)64位服务器VM(24.65建设-B04,混合模式)


解决方案

(从我的解决方案<复制的href=\"http://stackoverflow.com/questions/27071149/android-studio-1-0r-java-version-51-0-error/27076787#27076787\">here)

解决方案:

解决方案对我来说是编辑的Andr​​oid Studio.app/Contents/Info.plist

查找朝下方两行:

 &LT;密钥GT; JVMVersion&LT; /键&GT;
&LT;串GT; 1.6 *&LT; /串&GT;

将其更改为 1.7 * ,所以它看起来像这样:

 &LT;密钥GT; JVMVersion&LT; /键&GT;
&LT;串GT; 1.7 *&LT; /串&GT;

然后重新启动您的IDE。


说明:

如果你像我一样,会提示您安装的Andr​​oid工作室(RC版本之前)时,安装Java 6为您的Mac,因为它要求,我并没有在当时安装了运行时(全新安装) 。这使这个默认的运行时的IDE(即使在它的项目与JDK 7内置)。这似乎与1.0 RC-1,他们提出了这个1.7。

插件参考误导性(同样的事情发生了我)。您可以通过到Android工作室>关于Android的工作室检查它的使用运行时版本。

注意:这可能需要你你想要的补丁更新来更新下一次恢复它,有人<一个href=\"https://$c$c.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=80317\">here报道称,如果你编辑这个文件的补丁失败。我认为这是非常愚蠢和重质交给他们,希望他们尽快解决这一问题。

After I updated to Android Studio 1.0 RC I get this error:

AppEnginePlugin : Unsupported major.minor version 51.0

Since appengine is compiled with java 1.7 why does it say it's not supported?

Here is my java version:

java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

解决方案

(copied from my solution here)

Solution:

Solution for me was to edit Android Studio.app/Contents/Info.plist

Find these two lines towards the bottom:

<key>JVMVersion</key>
<string>1.6*</string>

Change it to 1.7*, so that it looks like so:

<key>JVMVersion</key>
<string>1.7*</string>

Then restart your IDE.


Explanation:

If you're like me, you were prompted to install Java 6 for your Mac when installing Android Studio (before the RC release) because it required that and I didn't have a runtime installed at the time (clean install). This made this the default runtime for the IDE (even if projects within it are built with JDK 7). It seems with 1.0 RC-1, they raised this to 1.7.

The plugin reference is misleading (same happened with me). You can check the runtime version it's using by going to Android Studio > About Android Studio.

NOTE: This may require you to revert it the next time you want to update with the patch updater, as someone here reported that the patcher fails if you've edited this file. I think this is really dumb and heavy handed by them, and hopefully they address that issue soon.

这篇关于AppEnginePlugin:不支持MAJOR.MINOR版本51.0 - AppEngine上1.9.17的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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