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

DaoMaster class error #1113

Open
xiaoye960825 opened this issue Aug 21, 2023 · 1 comment
Open

DaoMaster class error #1113

xiaoye960825 opened this issue Aug 21, 2023 · 1 comment

Comments

@xiaoye960825
Copy link

Make Project 后,自动生成DaoMaster类,运行后报错:
image

@greenrobot-team greenrobot-team changed the title DaoMaster类报错 DaoMaster class error Aug 22, 2023
@greenrobot-team
Copy link
Collaborator

This looks like an issue with imports. Note that greenDAO requires Android dependencies, e.g. it can only be used in an Android project.

Also your error output looks like there is an encoding issue. Try to set the Android plugin to use UTF-8, e.g.

android {
    compileOptions {
        encoding = "UTF-8"
    }
}

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

No branches or pull requests

2 participants