agrosner / DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.
MIT License
4.87k stars 598 forks source link

must be a visible abstract class that extends com.dbflow5.config.DBFlowDatabase #1705

Closed tianyingzhong closed 3 years ago

tianyingzhong commented 4 years ago

ISSUE_TEMPLATE

DBFlow Version:5.0.0-alpha1

Bug or Feature Request:

Description: studio 版本 4.0.1 gradle 版本 6.1.1

AppDataBase为新建的一个数据库类

AppDataBase must be a visible abstract class that extends com.dbflow5.config.DBFlowDatabase========== ����: java.lang.Thread.getStackTrace(Thread.java:1559) ����: com.dbflow5.processor.ProcessorManager.logError(ProcessorManager.kt:212) ����: com.dbflow5.processor.ProcessorManager.logError(ProcessorManager.kt:219) ����: com.dbflow5.processor.definition.DatabaseDefinition.(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) ����: �����������һ��ѭ���д���������Ϊ 'com.dbflow5.config.AppDataBaseAppDataBase_Database' ���ļ�����ע�ʹ��� 9 ������ 4 ������

Task :app:processDebugResources

FAILURE: Build failed with an exception.

TzuChiangLi commented 3 years ago

meet the problem,too

agrosner commented 3 years ago

Im pretty sure the error explains itself. AppDataBase must be a visible abstract class that extends com.dbflow5.config.DBFlowDatabase https://dbflow.gitbook.io/dbflow/v/develop/usage2/gettingstarted#creating-a-database