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

把它作为第三方库来用吗?但是为什么用不了,总是报错 #140

Open
Eaxker opened this issue Aug 20, 2017 · 2 comments
Open

Comments

@Eaxker
Copy link

Eaxker commented Aug 20, 2017

Error:(29, 13) Failed to resolve: com.github.lovetuzitong:MultiImageSelector:1.2
Show in File
Show in Project Structure dialog

@androiddan
Copy link

不能了,因为这是2年前的库了,作者貌似不更新了。现在6.0以后拍照需要摄像头权限,以及7.0的filePovider,都没有做兼容,最好自己把代码下载下来按自己的需求改。

@gdky005
Copy link

gdky005 commented Jan 8, 2018

来一个简单粗暴的解决办法:

http://blog.csdn.net/huangxiaoguo1/article/details/52830015?locationNum=2&fps=1

在Application的onCreat()方法中添加以下代码:

       // android 7.0系统解决拍照的问题
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
        StrictMode.setVmPolicy(builder.build());
        builder.detectFileUriExposure(); 

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

3 participants