gpt4 book ai didi

java - Xamarin 升级导致 "class file has wrong version 52.0, should be 50.0"错误

转载 作者:太空宇宙 更新时间:2023-11-03 11:55:24 28 4
gpt4 key购买 nike

我在 Visual Studio 2015 中升级到最新版本的 Xamarin。然后我编译了我的 Android 项目并遇到了这个错误:

cannot access android.app.Activity bad class file: [DRIVE]:[android-sdk-folder]\platforms\android-24\android.jar(android/app/Activity.class) class file has wrong version 52.0, should be 50.0 Please remove or make sure it appears in the correct subdirectory of the classpath. extends android.app.Activity

在互联网上搜索我只找到与 Java 和不同版本的 Java 编译器、Eclipse 等相关的提示。与 Xamarin 无关。

知道哪里出了问题吗?

最佳答案

对于 Visual Studio Team Services 构建,在 Xamarin.Android 任务上显式设置 JDK:

Set JDK

关于java - Xamarin 升级导致 "class file has wrong version 52.0, should be 50.0"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38011359/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com