In the Settings for Xamarin.Android update your JDK to 1.7.0+, it is very likely that you have 1.6 and that is why you get the error. In your SDK Manager make sure you have updated Tools. If you still get the message, close Visual Studio, delete bin and obj and reopen :v!
In the Settings for Xamarin.Android update your JDK to 1.7.0+, it is very likely that you have 1.6 and that is why you get the error. In your SDK Manager make sure you have updated Tools. If you still get the message, close Visual Studio, delete bin and obj and reopen :v!
This problem is caused by a Java version mismatch. Referred in the Wikipedia Java Class Reference :
This is the reference, the error you have is because when compiling you are using a
JDK
major and aJDK
minor at runtimeTo fix this, you must have the
JDK
and theJRE
pointing to the same version.Make sure the specified SDKs are actually installed, check in the
SDK Manager
!Remembering, I had this problem in Android Studio and the reason is that I had API 24 defined as targetSDK, in the end I had to return to 23.