Skip to content

Some of the androidx libraries require AAPT2 in order to compile #804

Open

Description

@william-ferguson-au

AMP only uses AAPT (1). AAPT2 has been available since Android 24
https://developer.android.com/studio/command-line/aapt2

The resource value file in AndroidX.savedState has a structure that cannot be parsed by AAPT.
I suspect there will be others.

AAPT2 explicitly splits resource packaging into compiling and linking (which we knew needed to be done because AMP invokes it twice, once in GenerateResources and once when packaging an AAR/APK)

We need to

  1. Split the AaptPackageCommandBuilder into Compile and Link classes or maybe just constructable based on command.
  2. Move all Aapt classes into an aapt package
  3. Create Aapt2 versions
  4. Have factory choose which classes to use, based on whether AAPT2 exists in build tools folder
  5. Update all clients.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions