CompressTools-Android icon indicating copy to clipboard operation
CompressTools-Android copied to clipboard

本地图片压缩

Open shiguangxiang opened this issue 7 years ago • 14 comments

图片本地文件压缩,没有走成功回调方法

shiguangxiang avatar Sep 25 '17 03:09 shiguangxiang

把代码贴一下,检查有没有报错,提示信息。是不是图片存储地址没有设置好。或者你可以把demo下载跑一下,移植过去。我在测试过程中是没有问题的。

lexluthors avatar Sep 26 '17 02:09 lexluthors

没有报错信息,也没有异常信息。我下载跑过了,等下我调试截图给你看看

在 2017年9月26日,上午10:24,liujie [email protected] 写道:

shiguangxiang avatar Sep 26 '17 02:09 shiguangxiang

image 我断点看了一下你的demo 也是这个文件路径的参数,我用的时候和你传的是一样,还是没走onSuccess。版本库:compile 'com.jaywei:compresstool:1.0.2'

shiguangxiang avatar Sep 27 '17 08:09 shiguangxiang

检查一下传进去的file是否有效

lexluthors avatar Sep 29 '17 10:09 lexluthors

应该就是file的问题,我用的是别人写的选照片库,返回的data跟你的不一样,也没有返回uri,我就自己转了一下,发现uri跟你的不一样

shiguangxiang avatar Oct 09 '17 10:10 shiguangxiang

我再验证了一下file是否有效,这个file是可以在界面上显示的,是一个有效的。但是报了IO异常

shiguangxiang avatar Oct 10 '17 01:10 shiguangxiang

image

shiguangxiang avatar Oct 10 '17 02:10 shiguangxiang

权限配置了吗?

2017-10-10 10:09 GMT+08:00 Sergei.Shi [email protected]:

[image: image] https://user-images.githubusercontent.com/16498399/31366340-0d96c20e-ad36-11e7-9d69-9236bae73ddb.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lexluthors/CompressTools-Android/issues/2#issuecomment-335338469, or mute the thread https://github.com/notifications/unsubscribe-auth/ARGB9trG9VlvvaT0KHJCcxk7jXgWZHt3ks5sqtHBgaJpZM4PiKGH .

lexluthors avatar Oct 10 '17 06:10 lexluthors

配置了,你有的权限我都有了

shiguangxiang avatar Oct 10 '17 06:10 shiguangxiang

和你demo唯一不一样就是targetSdkVersion,我的版本是25

shiguangxiang avatar Oct 10 '17 06:10 shiguangxiang

但是改了targetSdkVersion和你一样也还是不行

shiguangxiang avatar Oct 10 '17 06:10 shiguangxiang

594134383这我的qq,可以用这个联系

lexluthors avatar Oct 10 '17 07:10 lexluthors

好的👌

shiguangxiang avatar Oct 10 '17 07:10 shiguangxiang

我也是,不走 成功和失败回调用 版本库:compile 'com.jaywei:compresstool:1.2.0'。 测试demo没有问题,代码移植到项目中 就出现问题了

prookiee avatar Jan 24 '18 10:01 prookiee