Updating the powerprofile xml file in framework res package
Enabling this option results in a faster execution, but increases the output file size.Treats errors that are permissible when using earlier versions of AAPT as warnings.Although AAPT2 should immediately work with older projects, this section describes some behavior changes that you should be aware of.In previous versions of AAPT, elements nested in incorrect nodes in the Android manifest were either ignored or resulted in a warning.You can also debug build errors related to AAPT2 from the command line.To do so, you can find AAPT2 as a standalone tool in Android SDK Build Tools 26.0.2 and higher.
Additionally, other auxiliary files like and Pro Guard rules files can be generated during this phase.
To download Android SDK Build Tools from the command line, use sdkmanager and run the command: .
Because a newer revision of the Android SDK Build Tools is not released very often, the version of AAPT2 included in your SDK Build Tools might not be the latest.
Allows AAPT2 to select the closest matching density and strip out all others.
There are several pixel density qualifiers available to use in your app, such as ldpi, hdpi, and xhdpi.
Search for updating the powerprofile xml file in framework res package:
However, the generated APK does not contain DEX bytecode and is unsigned.