R8 kept androidx.work.impl.WorkDatabase_Impl but pruned its no-arg constructor: nothing calls it directly, Room only reaches it reflectively. Room then threw InstantiationException, surfacing as "Failed to create an instance of androidx.work.impl.WorkDatabase". WorkManager builds that database from a startup ContentProvider, so 0.3.0 died before any of our code ran — every install, every launch. We don't depend on WorkManager directly; it arrives via Glance. AGP 9's stricter R8 is what tipped this over, which is why 0.3.0 was the first release to hit it. Keep the Room no-arg constructor, and the ListenableWorker constructor alongside it — same pruning hazard on the path WorkManager uses to instantiate workers by name, which would have bitten once a Glance widget update actually ran. Reproduced the reporter's stack trace frame-for-frame on a releaseTest build, then confirmed it launches clean afterwards. Fixes #1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 lines
241 B
Plaintext
6 lines
241 B
Plaintext
### Fixed
|
|
- Agendula no longer crashes on launch. Every 0.3.0 install was affected: the
|
|
release build stripped a constructor that the background-work scheduler needs
|
|
to open its database, and that happens before the app draws anything.
|
|
|