com.alibaba.sdk.android.oss.ClientException: divide by zero

设置一下 setPartSize(110241024) 即可解决

例子

                String filePath = mFile.getPath();
                VodInfo vodInfo = new VodInfo();
                vodInfo.setTitle(mFile.getName());
                vodInfo.setDesc("描述.");
                vodInfo.setCateId(1);
                vodInfo.setIsProcess(true);
                //需要设置一下
                uploader.setPartSize(1*1024*1024);
                uploader.addFile(filePath, vodInfo);
//开启
                uploader.start();
复制代码

转载于:https://juejin.im/post/5cb9a035e51d456e7c0cdb00

你可能感兴趣的:(com.alibaba.sdk.android.oss.ClientException: divide by zero)