编辑 | blame | 历史 | 原始文档

Fix missing BaseActivitySummary symbol

The build error 错误: 找不到符号 类 BaseActivitySummary occurs because the greenDAO generated entity BaseActivitySummary is missing from the project's source tree. These entities are generated by the GBDaoGenerator module, which is currently not configured to run automatically during the build process.

Proposed Changes

Build Configuration

[MODIFY] [settings.gradle](file:///E:/mfa/jingshen-womp/cool-admin-shop-v8.0.0/cool-admin-android/settings.gradle)

Include the :GBDaoGenerator module so it can be used to generate the necessary entities. (Already partially completed, will verify).

[MODIFY] [app/build.gradle](file:///E:/mfa/jingshen-womp/cool-admin-shop-v8.0.0/cool-admin-android/app/build.gradle)

Uncomment the task dependency to ensure that the DAO generator runs before the app is built.

preBuild.dependsOn(":GBDaoGenerator:genSources")

Verification Plan

Automated Tests

  • Run ./gradlew :GBDaoGenerator:genSources to manually trigger source generation.
  • Verify the existence of app/src/main/java/nodomain/freeyourgadget/gadgetbridge/entities/BaseActivitySummary.java.
  • Run ./gradlew :app:compileMainlineDebugJavaWithJavac to verify that the compilation error is resolved.