Jacek KwiecieĊ„ Jacek KwiecieĊ„ - 2 months ago 15x
Java Question

AppEnginePlugin : Unsupported major.minor version 51.0 - appengine 1.9.17

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 for me was to edit Android Studio.app/Contents/Info.plist

Find these two lines towards the bottom:


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


Then restart your IDE.


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.