AAPT error : Cant create a apk file

I am using ionic 4, capacitor and angular for my PWA. The thing is whenever I generate an APK folder, this error shows up and I have no clue how to solve it. Anyone can assist?

All my android studio, sdk, are all the latest versions.

This shows up “AAPT: C:\Windows\System32\demo1\android\app\build\intermediates\res\merged\release: error: directory does not exist.”

Appreciate any help.