当前位置: 首页 > 知识库问答 >
问题:

Android-build失败-任务“:app:mergereleaseResources”执行失败

茅华灿
2023-03-14
> Task :app:mergeReleaseResources FAILED
*UserFile*\.gradle\caches\transforms-3\23d9fa9961c0d98e61467ef24b5c00c7\transformed\recyclerview-1.2.1\res\values\values.xml:9:4: <item> inner element must either be a resource reference or empty.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
   > Resource compilation failed. Check logs for details.

您可以在下面找到代码:https://github.com/ulkan/oc_mareu

共有1个答案

柯升
2023-03-14

资源类型ID不能有值

我构建了您的代码,它运行得很好,只是更改了您的res/values/ids.xml文件

ids.xml

<item name="item_participant" type="id">participants</item>
 <item name="item_participant" type="id"/>
 类似资料: