Android resource compilation failed in 3.3.0-alpha02

后端 未结 4 778
南旧
南旧 2021-01-05 18:09

Whenever I try and build my project, I get this error:

Android resource compilation failed
Output:  
C:\\Users\\smart\\AndroidStudioProjects\\ShoppingList\\a         


        
4条回答
  •  难免孤独
    2021-01-05 18:33

    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.

提交回复
热议问题