I use image_picker in my flutter project. It says "API < 29 ----> Add android:requestLegacyExternalStorage="true" as an attribute to the tag in AndroidManifest.xml. The attribute is false by default on apps targeting Android Q."
In build.gradle, it has compileSdkVersion 28 under android, and minSdkVersion 16 and targetSdkVersion 28 under defaultConfig. I'm not familiar with this, but I assume these fits the API<29 condition. So I added the attribute.
Then my project won't compile anymore with error saying "AAPT: error: attribute android:requestLegacyExternalStorage not found." It compiles if I delete android:requestLegacyExternalStorage="true". However since it specifically asks to add this attribute, I want to figure this out to avoid any potential problems like rejection on iOS for permission related issues.
After adding the attribute, my AndroidManifest.xml looks like:

What should I do about this? Thank you!