android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/2018012Android 7.0相继崩溃的问题

今天项目的bug:

android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/20180121181328.jpg exposed beyond app through ClipData.Item.getUri()

build.gradle中加入:

   
            
        

配置filepaths



    

files-path代表的根目录: Context.getFilesDir() 
external-path代表的根目录: Environment.getExternalStorageDirectory() 
cache-path代表的根目录: getCacheDir()

path 代表要共享的目录 
name 只是一个标示

你可能感兴趣的:(Android)