Error when running the flutter run - AAPT2

269 views Asked by At

I'm trying to implement mercadopago px, but at run time it returns an error AAPT2 aapt2-4.1.3-6503028-linux Daemon # 2: Unexpected error during compile I looked for some solutions Link , some say it is Gradle's mistake and others say it is related to the hardware. One of these solutions was to see the structure of the project and change the version of Gradle to a lower one, the version that did not give this error was (image), but there was an error in the main activity

Actual gradle

enter image description here

Changed Gradle

enter image description here

1

There are 1 answers

1
Izabela Orlowska On

If you have an older computer/laptop, it's likely the missing SSSE3 instructions. The bug was fixed in newer versions of AS/AGP so if you update your android gradle version to the newest 4.2 beta it should fix the issue.