I am receiving this error (error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found.) while building my app, seems image_cropper is expecting target sdk to be 35, while I have latest Flutter update which seems using Android SDK 35, what shall I do?
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
ERROR:D:\myproject\build\image_cropper\intermediates\packaged_res\debug\values-v35\values-v35.xml:3:5-5:13: AAPT: error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found.
while my config in build.gradle is, which seems using Android SDK 35 :
targetSdkVersion flutter.targetSdkVersion
And my Flutter version is :
Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.26100.2605], locale en-US)