I\'m trying to move to migrate to androidx. I used the migration tool in Android Studio. When I do this I get the following stacktrace when I run my app.
E/A
In manifiest.xml file simply change this
<provider
android:name="android.support.v4.content.FileProvider"
.....
</provider>
To this one
<provider
android:name="androidx.core.content.FileProvider"
......
</provider>
Or Simply
Thanks to @CommonsWare
More explanation:
What to do, find the android.support.v4.FileProvider
in your <provider>
in AndroidManifest.xml
.
Change it to androidx.core.content.FileProvider
why does it want to load the old version of FileProvider?
Based on the stack trace, perhaps you are still using the old package name in the <provider>
element in the manifest.