android.support.v4.content.FileProvider not found

后端 未结 8 1304
终归单人心
终归单人心 2021-02-01 13:37

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.

8条回答
  •  不思量自难忘°
    2021-02-01 14:09

    As of AndroidX (the repackaged Android Support Library), the path is androidx.core.content.FileProvider so the updated provider tag would be:

    
        
    
    

    Android Support Libraries are now in the androidx.* package hierarchy.

    android.* is now reserved to the built-in Android System Libraries.

提交回复
热议问题