AndroidStudio升级gradle3.2.1后项目报错

刚刚把项目gradle升级到3.2.1后项目报了个错:

Android resource compilation failed
Output:  /Users/gaoxingfei/shidonghui/shidonghui_Android/app/build/intermediates/incremental/mergeAnzhiDebugResources/merged.dir/values/values.xml:1817: error: duplicate value for resource 'attr/content' with config ''.
/Users/gaoxingfei/shidonghui/shidonghui_Android/app/build/intermediates/incremental/mergeAnzhiDebugResources/merged.dir/values/values.xml:1817: error: resource previously defined here.

Command: /Users/gaoxingfei/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/0b747833a8e5056f48142f5aae4f0855/aapt2-3.2.1-4818971-osx/aapt2 compile --legacy \
        -o \
        /Users/gaoxingfei/shidonghui/shidonghui_Android/app/build/intermediates/res/merged/anzhi/debug \
        /Users/gaoxingfei/shidonghui/shidonghui_Android/app/build/intermediates/incremental/mergeAnzhiDebugResources/merged.dir/values/values.xml
Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

AndroidStudio升级gradle3.2.1后项目报错_第1张图片意思是有资源id重复了,点击蓝色区域后跳转到build文件夹下的values.xml里边,可以直接定位到有问题的行,
在这里插入图片描述
这里是我的自定义属性“content”跟别的地方重复了,换个字段名就没问题了

你可能感兴趣的:(点滴)