Android solves Aapt2Exception error

As shown in the figure, when we upgrade Android Studio to version 3.0 and gradle is also upgraded to 3.0 at the same time, the above error message may appear when opening the project. This is because AAPT2 is enabled by default in gradle 3.0.0, so we only need to It needs to gradle.propertiesbe added in the project android.enableAapt2=false, and it will be compiled after sync.

Guess you like

Origin blog.csdn.net/zl_china/article/details/79427928