文章目录
- 一、报错信息
- 二、解决方案
一、报错信息
打包编译 Android 应用时 , 报如下错误 ;
代码语言:javascript复制FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> Entry name 'assets/xxx.xml' collided
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 26s
51 actionable tasks: 5 executed, 46 up-to-date
二、解决方案
出现上述报错的原因是 , 要生成 APK 的目标路径中 , 已经存在了一个文件 , 将上次打包生成的 APK 安装包删除即可 ;