AAPT is the full name of Android asset packaging tool. It is an indispensable tool to build app and even Android system. Its function is to compress and package all resource files into Android APK. We can find it in the Android SDK directory.
Aapt2 is a new version of AAPT. Starting from Android studio 3.0, it is used as the default resource packaging tool.
After upgrading Android studio 3.0, a number of old projects will appear. According to the online version, the following code is added to gradle.properties
android.enableAapt2=false
This method can solve some people’s problems, but some people can’t
I’m changing the API version. OK
Of course, it can also be caused by resource name, layout reference, layout ID reference, etc
Of course, you can also upgrade the as version
Similar Posts:
- [Solved] Android studio AAPT2 error: Execution failed for task ‘:app:mergeDebugResources’.
- [Solved] Could not find method google() for arguments [] on repository container,rn react-native-camera …
- [Solved] com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Android Studio ERROR: SSL peer shut down incorrectly (Solved)
- [Solved] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
- AndroidStudio Error: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:proces
- Error reason for adding PNG pictures in Android studio
- Android: layout layout page can not be displayed, prompt: one or more layouts are missing the layout_width or layout_height attrib…
- Android studio import project, error e rror:Unsupported method : BaseConfig.getApplicationIdSuffix().
- Plugin is too old, please update to a more recent