I faced the same issue when I tried to make a production release and I fixed it by disabling the proGuard R8 for all app modules
to do that you need to change the app build variant to [anything]Release then open project structure → build variant → set minify enabled to false for all app modules