VS2022下载 安卓镜像创建时 报错 为 无法创建 1 这类错误,要用 微软的jdk,不要用其他的
错误日志和地址
C:\Users\Administrator\AppData\Local\Xamarin\Logs\17.0
StandardError: 错误: 加载主类 com.android.sdklib.tool.AvdManagerCli 时出现 LinkageError
java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/AvdManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 56.0
ExitCode: 1
[24-05-28 07:27:50.87] [AvdManager.CreateAvd] avdmanager has returned non-zero exit code: 1
Command: G:\Android\cmdline-tools/11.0\bin\avdmanager.bat -v create avd -n pixel_5_-_api_34 -k system-images;android-34;google_apis_playstore;x86_64 --tag google_apis_playstore --abi x86_64 -d pixel_5 --sdcard 512M
Details: 错误: 加载主类 com.android.sdklib.tool.AvdManagerCli 时出现 LinkageError
java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/AvdManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 56.0