AppEnginePlugin:不支持的major.minor 版本51.0 - appengine 1.9.17 [英] AppEnginePlugin : Unsupported major.minor version 51.0 - appengine 1.9.17

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

问题描述

更新到 Android Studio 1.0 RC 后,出现此错误:

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

AppEnginePlugin : Unsupported major.minor version 51.0

既然 appengine 是用 java 1.7 编译的,为什么说不支持?

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

这是我的 Java 版本:

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)

我的解决方案是编辑 Android Studio.app/Contents/Info.plist

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

在底部找到这两行:

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

将其更改为1.7*,使其看起来像这样:

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

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

然后重新启动您的 IDE.

Then restart your IDE.

如果您像我一样,在安装 Android Studio 时(在 RC 版本之前),系统会提示您为 Mac 安装 Java 6,因为它需要这样做,而我当时没有安装运行时(全新安装).这使其成为 IDE 的默认运行时(即使其中的项目是使用 JDK 7 构建的).似乎在 1.0 RC-1 中,他们将其提高到 1.7.

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.

插件参考具有误导性(我也发生了同样的情况).您可以通过转到 Android Studio > 关于 Android Studio 来检查它使用的运行时版本.

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.

注意:这可能需要您在下次想要使用补丁更新程序进行更新时将其还原,因为有人 here 报告说,如果您编辑了此文件,则修补程序将失败.我认为这对他们来说真的很愚蠢而且很严厉,希望他们能尽快解决这个问题.

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天全站免登陆