If you are NOT USING PendingIntent
anywhere. The issue might be resolved by adding or updating this dependency
// required to avoid crash on Android 12 API 31
implementation 'androidx.work:work-runtime-ktx:2.7.1'
This fixed my problem.
You can execute ./gradlew app:dependencies
in the terminal in your project and discover what dependency is including work-runtime with and older version. Then you can try to upgrade that dependency in an effort of do the things right