FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/tencent/a/a/a/a/a.class
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 20s
原因:
wx和wxPay模块的问题,重新编译,换了这个错误... 云编译里高级设置Android也改为4.1.2
解决:
将wx和wxPay模块 版本回退 即可
本文解决了一个在使用Gradle构建Android项目时遇到的构建失败问题,错误信息显示为“com.android.build.api.transform.TransformException:java.util.zip.ZipException:duplicate entry”。通过调整wx和wxPay模块的版本并修改云编译的Android版本设置,成功解决了构建过程中的异常。
1740

被折叠的 条评论
为什么被折叠?



