Matisse: 7.0手机拍照后得到URI无法转化为path

Created on 7 May 2018  ·  7Comments  ·  Source: zhihu/Matisse

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

Most helpful comment

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

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

All 7 comments

我也是遇到类似的问题

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

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

我也遇到这个问题,当我尝试使用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.

现在有没有解决啊

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

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

感谢3楼

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mahan3340 picture Mahan3340  ·  4Comments

GTooo picture GTooo  ·  6Comments

cv0cv0 picture cv0cv0  ·  7Comments

aliondos picture aliondos  ·  3Comments

xiaotianchang picture xiaotianchang  ·  4Comments