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

Lambda 表达式报错 #1109

Open
1759122600 opened this issue Feb 9, 2023 · 2 comments
Open

Lambda 表达式报错 #1109

1759122600 opened this issue Feb 9, 2023 · 2 comments

Comments

@1759122600
Copy link

在使用@entity的实体类中使用Lambda,编译的时候会报错
Found 1 problem(s) parsing "D:\packager\**_3000\app\src\main\java\com\kgzn\**\bean\StickersBean.java". First problem: Pb(645) Lambda expressions are allowed only at source level 1.8 or above (1610613381 at line 184). Run gradle with --info for more details.

@1759122600
Copy link
Author

Using Lambda in an entity class that uses @entity will cause an error at compile time
Found 1 problem(s) parsing "D:\packager\**_3000\app\src\main\java\com\kgzn\**\bean\StickersBean.java". First problem: Pb(645) Lambda expressions are allowed only at source level 1.8 or above (1610613381 at line 184). Run gradle with --info for more details.

@greenrobot-team
Copy link
Collaborator

Note that greenDAO will not receive any updates in the foreseeable future.

Anyhow, check that you are using greenDAO 3.3.0. It should support Java 8 language features such as lambdas.

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