App crashes after reinstall on emulator since FileProvider Class was not found

后端 未结 2 1727
栀梦
栀梦 2021-01-19 01:01

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

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-19 01:27

    If you are using androidx libraries, in AndroidManifest.xml, change this:

    android:name="android.support.v4.content.FileProvider"
    

    to this:

    android:name="androidx.core.content.FileProvider"
    

提交回复
热议问题