Aapt2 Error In Android Studio 3.1.1
Solution 1:
It looks like you might be experiencing issues with AAPT2 not handling non-ascii characters on windows properly. This has been solved in the newest 3.2.0 alphas. Try replacing the android gradle plugin in your build.gradle file to match:
classpath 'com.android.tools.build:gradle:3.2.0-alpha11'
Note: since you updated from 2.2 to 3.1.1 directly, after fixing this issue you can also experience other errors from AAPT2 - it is much stricter than AAPT (it's better to fail early at build time than to run into runtime crashes). If you run into them checkout the migration guide. If the guide doesn't have enough info create a new bug here or on the issue tracker.
Solution 2:
The warning just tells you to remove android.enableAapt2=false from gradle.properties. It works for me.
Solution 3:
To whom ever this might help later on,
I solved my problem by removing the tag android:fullBackUpContent=""
from the manifest file,
Intellisense from android studio had made me put it there and due to trust, you may also spend 12 hours looking for your problem, But, that is it
Good luck
Post a Comment for "Aapt2 Error In Android Studio 3.1.1"