Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 7.0 报错,Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/Instapp/nat_img_1529916829792.jpg exposed beyond app through ClipData.Item.getUri() #1

Open
androidzhangyanhui opened this issue Jun 25, 2018 · 0 comments

Comments

@androidzhangyanhui
Copy link

FATAL EXCEPTION: main
Process: com.weex.app, PID: 3145
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.taobao.weex.bridge.NativeInvokeHelper$1.run(NativeInvokeHelper.java:50)
at com.taobao.weex.common.WXThread$SafeRunnable.run(WXThread.java:49)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6244)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:797)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.taobao.weex.bridge.MethodInvoker.invoke(MethodInvoker.java:46)
at com.taobao.weex.bridge.NativeInvokeHelper$1.run(NativeInvokeHelper.java:48)
at com.taobao.weex.common.WXThread$SafeRunnable.run(WXThread.java:49) 
at android.os.Handler.handleCallback(Handler.java:751) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:154) 
at android.app.ActivityThread.main(ActivityThread.java:6244) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:797) 
Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/Instapp/nat_img_1529916829792.jpg exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1802)
at android.net.Uri.checkFileUriExposed(Uri.java:2354)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:845)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8952)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8937)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1519)
at android.app.Activity.startActivityForResult(Activity.java:4277)
at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
at android.app.Activity.startActivityForResult(Activity.java:4235)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
at com.instapp.nat.camera.CameraModule.captureImage(CameraModule.java:69)
at com.instapp.nat.weex.plugin.Camera.Camera.realCaptureImage(Camera.java:59)
at com.instapp.nat.weex.plugin.Camera.Camera.captureImage(Camera.java:53)
at java.lang.reflect.Method.invoke(Native Method) 
at com.taobao.weex.bridge.MethodInvoker.invoke(MethodInvoker.java:46) 
at com.taobao.weex.bridge.NativeInvokeHelper$1.run(NativeInvokeHelper.java:48) 
at com.taobao.weex.common.WXThread$SafeRunnable.run(WXThread.java:49) 
at android.os.Handler.handleCallback(Handler.java:751) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:154) 
at android.app.ActivityThread.main(ActivityThread.java:6244) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:797) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant