com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed after updating android studio

后端 未结 10 1586
清歌不尽
清歌不尽 2021-02-04 08:29

After updating android studio,i am getting this error.how to fix this??

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.
    at         


        
10条回答
  •  遇见更好的自我
    2021-02-04 09:13

    In my case it was on color.xml in which invalid color name found and it did produce following error

     java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
    

    I checked the logcat error and I found this line of stack trace

     C:\\MyProjectPath\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
    

    Then I had a look into it and I found my color code was wrong then I fixed it and it compiled well.

提交回复
热议问题