Problem when compiling Android app in Xamarin

0

I am a beginner in the world of mobile development, I downloaded Xamarin Studio (Mac) to start programming apps for the three environments, but I have a problem, I think, with the Android SDK.

The first time I created an Android app, when I wanted to look at the interface in Main.axml, I missed a window that said something like the SDK was old and needed to be updated to version 25.0.2, it seems to me. I opened the SDK Manager, and downloaded all the Extras, the latest version of the Android SDK Tools, the Android DSK Build Tools, and the Android SDK Platform, and the entire Android 6.0 pack. Now the designer works, but when I compile the application this error arises:

  

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets:   Error: java.lang.UnsupportedClassVersionError:   com / android / dx / command / Main: Unsupported major.minor version 52.0   (TestAndroidXamarin)

    
asked by Juan Manuel Gentili 26.12.2016 в 15:14
source

1 answer

0

Version 52.0 refers to the specific version of the JDK

  • Xamarin Android for the version you are using requires JDK-8 in version 1.8.
  • Another solution that worked for me, is to lower the level of compilation to your application, right click on your Android solution and go to properties, there you will see the compilation versions and lower them to 6.0 marshmallow, because default I think you are compiling with Nougat, once you do that, right click on your solution, clean and then build , and with that you should compile without version problems.
  • answered by 26.12.2016 / 16:01
    source