Android6.0 The 6 然后在代码里的: Uri uri = Uri.fromFile(new File(picPath)); 更改为: Uri uri; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){ uri = FileProvider.getUriForFile(context, com.luxiaofeng-你的应用包名 和mainfest声明的一致,newFile(picPath)); intent.addFlags(Intent.FLAG_GRANT_READ_URI