GreenDao3使用时遇到的坑

1.集成类时报错:

Error:Execution failed for task ':app:greendao'.

> Can't replace method in D:\Android\SVN\SVN_Android4\trunk\CheckOnline\app\src\main\java\com\zeek\checkonline\bean\CustomerTest.java:133 with generated version.

                    If you would like to keep it, it should be explicitly marked with @Keep annotation.

                    Otherwise please mark it with @Generated annotation

原因:原来Bean类数据库表有关联关系的不能自己写 set/get 方法,把属性设置为public,删除掉set/get 方法即编译通过了

你可能感兴趣的:(GreenDao3使用时遇到的坑)