Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

后端 未结 30 1778
野的像风
野的像风 2020-11-22 12:51

This is the output of my Gradle console, I am unable to build my project

D:\\Android Projects\\....\\app\\src\\main\\res\\layout\\topic_view_header.xml
Error         


        
30条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 13:48

    Since at some point in the future the support for AAPT(1) will be deprecated, it would be good to identify the reason for the error you reported.
    Could you provide the contents of the \app\src\main\res\layout\topic_view_header.xml file? From the question marks it is possible that you are using non-ASCII characters, which AAPT2 still has some trouble with. If it's indeed non-ASCII characters then please follow the bug on https://issuetracker.google.com/68262818.

    Update: The issue is fixed in android gradle plugin version 3.2.0-alpha11 or newer.

提交回复
热议问题