I get a Xamarin error when compiling a new Android project. java\lang\Object.class major version 51 newer than 50, the highest major version supported by this compiler.
Anyone know the reason for this error and how to fix?
I get a Xamarin error when compiling a new Android project. java\lang\Object.class major version 51 newer than 50, the highest major version supported by this compiler.
Anyone know the reason for this error and how to fix?
the problem has gone away. I used NuGet to update all my Xamarin components in the Android project and now the app compiles ok.
Another possibility if you are doing Xamarin in Visual Studio, make sure your JDK location is correct in Tools/Options/Xamarian/Android Settings. I found mine wasn't after upgrading the JDK.
This indicates that you are trying to execute a higher version of class files in a lower version of java. Check your java version.
You can check the version of jar file in which your jar file compiled by executing the following command.
javap -cp <jar-file> -v <classfile>