Whenever I try and build my project, I get this error:
Android resource compilation failed
Output:
C:\\Users\\smart\\AndroidStudioProjects\\ShoppingList\\a
I don't konw why but this work for my project. such as the problem,i get seam error just like your. i fix them like this:i search error location
Android resource compilation failed
Output: F:\Works\AndroidProject\lbw\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1703: error: duplicate value for resource 'attr/progress' with config ''.
F:\Works\AndroidProject\lbw\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1703: error: resource previously defined here.
Command: C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\802c7c840816e44cd175d342954a2954\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
F:\Works\AndroidProject\lbw\app\build\intermediates\res\merged\debug \
F:\Works\AndroidProject\lbw\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
then i search the file
F:\Works\AndroidProject\lbw\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
and i find the location at lines 1703 enter image description here
and i find the error location in the file enter image description here
and i copy the name absProgressBar
search in attrs
then i get the error location
enter image description here
than i commenty build argen the error will be gone.