Xamarin Visual Studio - Unsupported major.minor version 52.0

后端 未结 4 1925
余生分开走
余生分开走 2020-12-18 03:04

I am attempting to run a Hello World example from the following tutorial: https://mva.microsoft.com/en-US/training-courses/xamarin-for-absolute-beginners-16182

I am

相关标签:
4条回答
  • 2020-12-18 03:46

    It worked also for me ONLY changing the registry entry

    0 讨论(0)
  • 2020-12-18 03:53

    I had a similar issue when Xamarin.Android project was moved from Xamarin Studio (Mac) to Visual Studio 2015 (Windows 10).

    I resolved this issue after JDK 1.8.0_121 (for Widows x64) installation.

    0 讨论(0)
  • 2020-12-18 04:02

    The solution not involving using Visual Studio IDE (i.e. build servers) is to import the following key to the registry after installing JDK version 1.8.0_101:

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\SOFTWARE\Novell\Mono for Android]
    "JavaSdkDirectory"="C:\\Program Files (x86)\\Java\\jdk1.8.0_101"
    

    Don't forget to clean/update sdks.cache files in obj[Release|Debug] directories to reference the correct version of jdk.

    For the reference here is a complete list of paths used by Mono for Android:

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\SOFTWARE\Novell\Mono for Android]
    "AndroidNdkDirectory"="C:\\ProgramData\\Microsoft\\AndroidNDK\\android-ndk-r11c"
    "AndroidSdkDirectory"="C:\\Program Files (x86)\\Android\\android-sdk"
    "JavaSdkDirectory"="C:\\Program Files (x86)\\Java\\jdk1.8.0_101"
    
    0 讨论(0)
  • 2020-12-18 04:04

    You can follow this blog to resolve it https://agilehobo.wordpress.com/2016/08/24/2-ways-to-resolve-unsupported-major-minor-version-52-0-when-building-xamarin-android-app/

    0 讨论(0)
提交回复
热议问题