java - 在 Kotlin 中使用 java 9 编译库
问题描述
我正在尝试在 Kotlin 中使用来自 google 的 or-tools java 库,问题是在编译时,它给了我以下错误:
java.lang.UnsupportedClassVersionError: com/google/ortools/constraintsolver/RoutingModel has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
那么,是否可以在 Kotlin 中使用这个库,或者我应该用 Java 重写软件?
解决方案
推荐阅读
- python - 如何使用 pd.read_html 抓取具有 % 值的 HTML 表格?
- javascript - React 钩子表单不适用于来自 reactstrap 的输入
- python - 如何从 __init__ 访问 __init_subclass__ 中的变量?
- java - 如何在lamba表达式中抽象方法调用?
- java - 如何覆盖在 Mockito Junit 中的方法内实例化的类?
- javascript - 如何从 guacamole-common.js. 制作剪贴板流?
- amazon-web-services - AWS API Gateway Simple Lamda Authorizer 在与使用私有资源集成的 HTTP API 一起使用时失败
- c# - 有没有一种优雅的方法来分离 C# 中的插件接口和实现?
- firebird - 如何使用 FBExport 从 Firebird 数据库中导出一些数据?
- node.js - 允许 Nginx 从站点的联系表单发送电子邮件