Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compiled in Android Java17 #137

Open
swFan opened this issue Oct 16, 2024 · 2 comments
Open

Can't compiled in Android Java17 #137

swFan opened this issue Oct 16, 2024 · 2 comments

Comments

@swFan
Copy link

swFan commented Oct 16, 2024

when i compile calimero-core using Java 17 in android, it does not works. following compile info:

G:\TCSSoft\AndroidProjects\Calimero\calimero-core-v26rc1\src\main\java\tuwien\auto\calimero\serial\ConnectionFactory.java:43: 错误: 找不到符号
import java.util.ServiceLoader.Provider;
^
符号: 类 Provider
位置: 类 ServiceLoader
G:\TCSSoft\AndroidProjects\Calimero\calimero-core-v26rc1\src\main\java\tuwien\auto\calimero\serial\ConnectionFactory.java:113: 错误: 找不到符号
private Stream<Provider

> providers(final boolean refresh) {
^
符号: 类 Provider
位置: 类 ConnectionFactory<P,C>
其中, P,C是类型变量:
P扩展已在类 ConnectionFactory中声明的Object
C扩展已在类 ConnectionFactory中声明的Object
G:\TCSSoft\AndroidProjects\Calimero\calimero-core-v26rc1\src\main\java\tuwien\auto\calimero\serial\ConnectionFactory.java:110: 错误: 不兼容的类型: Stream无法转换为Stream


}).filter(Objects::nonNull);
^
其中, P是类型变量:
P扩展已在类 ConnectionFactory中声明的Object

@swFan
Copy link
Author

swFan commented Oct 16, 2024

calimero-core_20241016141319

@bmalinowsky
Copy link
Collaborator

You need Android API level 35.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants