Android packaging AAPT2

I get the next error when packaging an android apk

“AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.”

I have the next sdk, ndk and jdk.
SDK: Android SDK Build Tools 34.0.0 / Android SDK Command Line Tools 8.0
NDK: 21.1.6352462
JDK: jdk-1.8

Any help would be appreciated