Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

  • Post author:
  • Post category:其他


网上的方法汇总:

1.在gradle.properties中加入一行代码:android.enableAapt2=false


https://blog.csdn.net/iyam184/article/details/79890736


2.删除.9文件

3.AndroidStudio->Preferences->InstantRun 把钩全部去掉

4.clean project,然后invalidate caches restart


https://blog.csdn.net/aaawqqq/article/details/51944066


5.把gradle 的global setting改为非中文的办法,还是不起作用


https://blog.csdn.net/qq_34879948/article/details/80313690



https://blog.csdn.net/L_201607/article/details/80679814



版权声明:本文为ancientear原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。