I have decompiled APK using apktool d demoapp.apk
then compiling apk
using apktool b demoapp.apk
but at compile time it throws the error
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1):
Here No resource identifier found
for attribute preserveLegacyExternalStorage
in package android
The same error appears for requestLegacyExternalStorage
as well