W: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/codec/binary/Base64;
W: at com.alibaba.sdk.android.oss.common.utils.BinaryUtil.toBase64String(BinaryUtil.java:24)
W: at com.alibaba.sdk.android.oss.common.auth.HmacSHA1Signature.computeSignature(HmacSHA1Signature.java:51)
W: at com.alibaba.sdk.android.oss.common.utils.OSSUtils.sign(OSSUtils.java:402)
W: at com.alibaba.sdk.android.oss.common.utils.OSSUtils.signRequest(OSSUtils.java:584)
W: at com.alibaba.sdk.android.oss.network.OSSRequestTask.call(OSSRequestTask.java:78)
W: at com.alibaba.sdk.android.oss.network.OSSRequestTask.call(OSSRequestTask.java:36)
W: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W: at java.lang.Thread.run(Thread.java:764)
W: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.commons.codec.binary.Base64" on path: DexPathList[[zip file "/data/app/com.tigo.ttsspeak-VVVnjQuwV-n5JngpvIS72g==/base.apk"],nativeLibraryDirectories=[/data/app/com.tigo.ttsspeak-VVVnjQuwV-n5JngpvIS72g==/lib/arm64, /system/lib64, /vendor/lib64]]
W: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
W: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
W: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
W: ... 10 more
E: E: com.alibaba.sdk.android.oss.ClientException: [ErrorMessage]: Unexpected exception!Failed resolution of: Lorg/apache/commons/codec/binary/Base64;
确保您的项目中已经添加了Apache Commons Codec库的依赖。如果您使用的是Gradle构建系统,可以在build.gradle文件中的dependencies部分添加如下依赖:
implementation 'commons-codec:commons-codec:1.15'
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。