在github 上下載了一個項目 導入 AS 之後 發現報錯
Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details…
根據別人的博客 解決了:
主要 在gradle.properties中添加一行代碼就行了
android.enableAapt2=false
根據博客:https://blog.csdn.net/qq_36317441/article/details/79002293