Skip to content Skip to sidebar Skip to footer

Android Resource Compilation Failed-duplicate Value For Resource 'attr/layout_anchorgravity' With Config

Android resource compilation failed Output: C:\projects\template\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:218: error: duplicate value

Solution 1:

This error took me forever to debug. But, at the end it all came down to whether you have made use of two "implementation" sources that do similar things. For example if you use a custom seekbar, from two different sources, both the seekbars will change the value of tools:max. This will cause the problem. It is the same reason why even you are getting the same error

error: resource previously defined here

If you have used two different implementation which are similar, remove one of them or comment and check it will be solved

Post a Comment for "Android Resource Compilation Failed-duplicate Value For Resource 'attr/layout_anchorgravity' With Config"