When I run the app on the emulator it always works on the first try. But when the app is already installed on the emulator it often results in a crash during the start of th
If you are using androidx libraries, in AndroidManifest.xml, change this:
androidx
AndroidManifest.xml
android:name="android.support.v4.content.FileProvider"
to this:
android:name="androidx.core.content.FileProvider"