zhihu / Matisse

:fireworks: A well-designed local image and video selector for Android
Apache License 2.0
12.52k stars 2.06k forks source link

7.0手机拍照后得到URI无法转化为path #378

Open meiniepan opened 6 years ago

meiniepan commented 6 years ago

手机7.0系统,根据contentResolver 获取path时,执行到int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);会报错,log为 java.lang.IllegalArgumentException: column '_data' does not exist

YangMian commented 6 years ago

我也是遇到类似的问题

sxd-github commented 6 years ago

使用这个方法Matisse.obtainPathResult(data),获取path

compile'com.zhihu.android:matisse:0.5.0-alpha4'

RUANHAOANDROID commented 6 years ago

我也遇到这个问题,当我尝试使用compile'com.zhihu.android:matisse:0.5.0-alpha4' 会报错 Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.zhihu.android:matisse:0.5.0-alpha4.

ghost commented 6 years ago

现在有没有解决啊

RUANHAOANDROID commented 6 years ago

我用3楼的办法解决的,感谢

Mr-Zheng-yz commented 5 years ago

我也是用3楼的办法解决的,感谢

freezingwhisper commented 5 years ago

感谢3楼