greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

DaoMaster class error #1113

Open xiaoye960825 opened 10 months ago

xiaoye960825 commented 10 months ago

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

greenrobot-team commented 10 months ago

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"
    }
}