android.support.v4.content.FileProvider not found

后端 未结 8 1303
终归单人心
终归单人心 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:11

    Create your class

    import android.support.v4.content.FileProvider;
    
    public class GenericFileProvider extends FileProvider {
    }
    

    Add this provider into your AndroidManifest.xml under application tag:

    
             
    
    

提交回复
热议问题