RingoGG
RingoGG
  • 发布:2019-02-15 10:29
  • 更新:2019-02-15 10:29
  • 阅读:925

运行plus.zip.compressImage压缩图片,使用AS打包后闪退,但是用HBuilder运行正常

分类:HBuilder

plus.zip.compressImage({
src: entry.toLocalURL(),
dst: entry.toLocalURL(),
overwrite: true,
format: "jpg",
quality: 80
}, function(zip) {
if(zip.size > (1 * 1024 * 1024)) {
return mui.toast('文件超大,请调整相机重新拍照');
}
}, function(zipe) {
mui.toast('压缩失败!')
});

Android Studio打包后运行到这就闪退,用Hbuilder就没问题

2019-02-15 10:29 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复