java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10, result=-1, data=Intent { (has extras) }} to activity {com.cathaynav.tradeschoolteacher/zuo.biao.library.ui.SelectPictureActivity}: android.os.FileUriExposedException: file:///storage/emulated/0/com.cathaynav.tradeschoolteacher/image/photo1526372170558.jpg exposed beyond app through ClipData.Item.getUri()
at android.app.ActivityThread.deliverResults(ActivityThread.java:4224)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4267)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1616)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6396)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/com.cathaynav.tradeschoolteacher/image/photo1526372170558.jpg exposed beyond app through ClipData.Item.getUri()
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10, result=-1, data=Intent { (has extras) }} to activity {com.cathaynav.tradeschoolteacher/zuo.biao.library.ui.SelectPictureActivity}: android.os.FileUriExposedException: file:///storage/emulated/0/com.cathaynav.tradeschoolteacher/image/photo1526372170558.jpg exposed beyond app through ClipData.Item.getUri() at android.app.ActivityThread.deliverResults(ActivityThread.java:4224) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4267) at android.app.ActivityThread.-wrap20(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1616) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6396) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794) Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/com.cathaynav.tradeschoolteacher/image/photo1526372170558.jpg exposed beyond app through ClipData.Item.getUri()
demo就不会出错,我配置的就会出错