This AAPT2 error: check logs for details occurs in projects above AS3.0. One of the solutions is to add a line of “Android.enableAAPT2 =false” code to the project’s gradle.properties
But this scheme is outdated and will be deprecated by the end of the year, so don’t do this because when enabled, the default is
Android. enableAapt2=true cannot be modified.
Solution: 1, check if the path of your. Gradle folder on drive C contains Chinese, if yes, please change the path to English, or copy the. Gradle folder to another place that does not contain Chinese, then in your AS setting set the gradle cache path to your new path that does not contain Chinese. As follows:
Scheme 2:
Update AndroidStudio to 3.2, the latest version of AndroidStudio has addressed this bug.