Error when using apktool with compiled apk

HI,

i compiled apk using mit2

I am using apktool to add some resources and also to resign the apk using jarsigner. But even using the latest apktool your apk files give this error:

error: No resource identifier found for attribute 'requestLegacyExternalStorage' in package 'android'

only with MIT AI apk i see this issue.

Is there a fix?

I do see requestLegacyExternalStorage in the manifest but for some reason apktool says it cant see it.