错误记录Android 应用打包错误 ( Entry name ‘assets/xxx.xml‘ collided )
Posted 韩曙亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录Android 应用打包错误 ( Entry name ‘assets/xxx.xml‘ collided )相关的知识,希望对你有一定的参考价值。
一、报错信息
打包编译 android 应用时 , 报如下错误 ;
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 安装包删除即可 ;
以上是关于错误记录Android 应用打包错误 ( Entry name ‘assets/xxx.xml‘ collided )的主要内容,如果未能解决你的问题,请参考以下文章
错误记录Android 应用导入 ijkplayer 报错 ( uses-sdk:minSdkVersion 19 cannot be smaller than version 21 decl )
错误记录Android Studio 打包 apk 文件报错 ( The destination folder does not exist or is not writeable )
错误记录Unity 安卓打包报错( Platform Android with graphics API OpenGLES3 is not supported with HDRP )