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

相机权限问题 #99

Open
keluokeda opened this issue Dec 18, 2020 · 1 comment
Open

相机权限问题 #99

keluokeda opened this issue Dec 18, 2020 · 1 comment

Comments

@keluokeda
Copy link

如果app的清单配置文件里面声明了android.permission.CAMERA权限,那么在调用相机的时候需要申请相机权限,不然会报错

 java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.oppo.camera/.Camera clip={text/uri-list U:content://com.ke.rximagepicker.demo.image_picker.provider/external_files/Android/data/com.ke.rximagepicker.demo/files/Pictures/JPEG_20201218_095112_6286554076496488627.jpg} (has extras) mCallingUid=10216 } from ProcessRecord{388c884 16176:com.ke.rximagepicker.demo/u0a216} (pid=16176, uid=10216) with revoked permission android.permission.CAMERA
@1ansam
Copy link

1ansam commented Oct 19, 2021

可以使用郭神PermissionX解决方案 https://github.com/guolindev/PermissionX

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

2 participants