Android Question Exception java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/work/impl/WorkDatabase;

Hello, dear Erel.

In Google Console, this error appeared

And according to Google's own guidance
Is it possible to set this
-keep class androidx.work.** { *; }
-dontwarn androidx.work.**
in Basic for ProGuard or Release Obfuscated or can I just add
#AdditionalJar: androidx.lifecycle:lifecycle-service
#AdditionalJar: androidx.work:work-runtime
to solve the problem?
Tanks @Erel