Make project fail: must be a visible abstract class
See original GitHub issueDBFlow Version: 5.0.0-alpha1
Bug or Feature Request: build fail When I Click “Make Project” then shows the log below:
========== :com.example.monkey.xposedhookdemo.TestDataBase must be a visible abstract class that extends com.dbflow5.config.DBFlowDatabase*==========* 错误: java.lang.Thread.getStackTrace(Thread.java:1552) 错误: com.dbflow5.processor.ProcessorManager.logError(ProcessorManager.kt:212) 错误: com.dbflow5.processor.ProcessorManager.logError(ProcessorManager.kt:219) 错误: com.dbflow5.processor.definition.DatabaseDefinition.<init>(DatabaseDefinition.kt:82) 错误: com.dbflow5.processor.DatabaseHandler.onProcessElement(Handlers.kt:229) 错误: com.dbflow5.processor.BaseContainerHandler.handle(Handlers.kt:194) 错误: com.dbflow5.processor.ProcessorManager.handle(ProcessorManager.kt:233) 错误: com.dbflow5.processor.DBFlowProcessor.process(DBFlowProcessor.kt:67)
My Code: `@Database(name = TestDataBase.NAME, version = TestDataBase.VERSION) public class TestDataBase {
//数据库名称
public static final String NAME = "MyDatabase";
//数据库版本号
public static final int VERSION = 1;
}`
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
move the database name to the
FlowConfig
:name
in theDatabase
annotation should have been removed. It will be removed in5.0.0-alpha2
.yes this is the message. you have to change your db from
to: