配置'的资源'attr/layout_anchorGravity'的重复值'' [英] duplicate value for resource 'attr/layout_anchorGravity' with config ''

查看:139
本文介绍了配置'的资源'attr/layout_anchorGravity'的重复值''的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android resource compilation failed
Output:  H:\OzelDersim\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1019: error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.
H:\OzelDersim\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1019: error: resource previously defined here.

Command: C:\Users\Emre Hmrc\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\0d3beb61e3dde971f53232b7b0aae803\aapt2-3.2.0-4818971-windows\aapt2.exe compile --legacy \
        -o \
        H:\OzelDersim\app\build\intermediates\res\merged\debug \
        H:\OzelDersim\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #0

推荐答案

在模块 build.gradle(app)中,在依赖项中添加 support:design :

In the module build.gradle (app), add support:design in dependencies:

implementation 'com.android.support:design:28.0.0'

将版本替换为模块中使用的版本,并且不要忘记同步.

查看最新版本或更多信息.

Replace the version with the one used in your module and don't forget to Sync.

To check the latest version or for more information.

这篇关于配置'的资源'attr/layout_anchorGravity'的重复值''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆