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

后端 未结 30 1779
野的像风
野的像风 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:38

    Check following things in your project:

    • Make sure any XML file doesn't have blank space at starting of the file.

    • Make sure that any drawable file doesn't have any issue like capital letters or any special symbols in name.

    • If your aapt2.exe is missing continuously then please scan your full PC, May be there is a virus which is removing adb.exp or aapt2.exe

    Hope you will get solution.

提交回复
热议问题