I am trying to upgrade a working old app to support Android API 26, and one of the thing I need to use is android.support.v4.content.FileProvider - but it was not found.
I replaced it with the newer version, which is : androidx.core.content.FileProvider
This worked for me.