简体   繁体   English

Gradle 错误:创建构建时冲突属性

[英]Gradle Error: Colliding Attributes when creating Build

when building an.apk file for Android in Unity with the Wikitude SDK I always get the Error: Gradle Error: Colliding Attributes.使用 Wikitude SDK 在 Unity 中为 Android 构建 .apk 文件时,我总是收到错误:Gradle 错误:冲突属性。 I hope someone had the same problem or can solve this, because I really don't know what to do.我希望有人有同样的问题或可以解决这个问题,因为我真的不知道该怎么办。 I would be very happy if someone could help me here!如果有人可以在这里帮助我,我会很高兴!

I use Unity 2019.3.6f1 and Wikitude SDK Expert Edition for Unity 9.0.我使用 Unity 2019.3.6f1 和 Wikitude SDK Expert Edition for Unity 9.0。 Attached is the error log with the error itself and a video of the development process in unity, if this helps (see link*).附件是带有错误本身的错误日志和统一开发过程的视频,如果有帮助的话(见链接*)。

Thanks in advance: :)提前致谢: :)

Best regards, Sebastian最好的问候,塞巴斯蒂安

*Link for the video: https://1drv.ms/v/s!AlxZ4c5bmzbug_MUntWtUsJlufLlrg *视频链接: https://1drv.ms/v/s!AlxZ4c5bmzbug_MUntWtUsJlufLlrg

Error Message:错误信息:

摇篮错误 1

摇篮错误 2

This error means that there are multiple conflicting settings for that attribute in you project.此错误意味着您的项目中该属性存在多个冲突设置。 To get around this you will need to edit your AndroidManifest.xml file in your Plugins/Android folder.要解决这个问题,您需要在 Plugins/Android 文件夹中编辑您的 AndroidManifest.xml 文件。

If you look at the logs it will tell you a "Suggestion" on how to fix it.如果您查看日志,它会告诉您有关如何修复它的“建议”。 Just go add that override for the attribute in your AndroidManifest.xml file.只需 go 为您的 AndroidManifest.xml 文件中的属性添加该覆盖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Gradle 错误:统一 android 构建中的冲突属性 - Gradle Error: Colliding attributes in unity android build Unity:添加 Facebook SDK 后无法构建到 Android — ZD5171DF23601B19B7661200ECcoll - Unity: Cant build to Android after adding Facebook SDK — GRADLE ERROR : colliding-attributes 创建Firebase时错误构建Gradle - Error build gradle when creating firebase 未找到 Gradle 构建错误样式属性 - Gradle build error styles attributes not found 找不到 Gradle 构建错误样式属性 - Gradle build error style attributes not found Gradle 错误:冲突属性 -- AndroidManifest.xml:38:17-38 也存在于 [com.google.android.play:.core:. - Gradle Error: Colliding Attributes -- AndroidManifest.xml:38:17-38 is also present at [com.google.android.play:core:1.10.0] 创建带有片段的空白活动时导入碰撞 - imports colliding when creating blank activity with fragment 新 Android studio 4.2 预览版在创建 buildSrc 和 build.gradle.kts 时出现此错误 - New Android studio 4.2 Preview having this error when creating buildSrc and build.gradle.kts 下载 Gradle 时 Ionic 构建 Android 错误 - Ionic build Android error when downloading Gradle gradle 构建时 Android 打包失败,错误号为 3 - Android packaging failed when gradle build with error no 3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM