Fix for Flutter on Windows:
Identify the package which causes the problem (in my case it was uni_link3)
Find the package cached build.gradle: Usually under C:\Users\xxx\AppData\Local\Pub\Cache\hosted\pub.dev\uni_links3\android\
Manually edit the file and change the 'compileSdkVersion' to 34
rebuild the release