【发布时间】:2022-01-20 06:49:44
【问题描述】:
在网上尝试了很多解决方案后,我没有找到解决这个问题的方法。
> Task :app:mergeDebugResources FAILED
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing
com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed. Check logs for details.
ParseError at [row,col]:[13,192]
Message: Attribute "xmlns:android" was already specified for element "LinearLayout".
我的 xml 线性布局没有“xmlns:android”属性。它仍然要求相同。
提前致谢!
【问题讨论】:
-
你应该在 LinearLayout 中添加这一行:xmlns:android="schemas.android.com/apk/res/android"
-
它给了我同样的错误。
-
你能分享你的 XML 文件吗?
标签: android xml layout android-linearlayout