Method 1
Read moreHow do I downgrade my flutter package?
in the terminal window, you need to run “$ flutter clean” in the project root, and “$ flutter pub upgrade”, and possibly delete the Pods/ folder and get everything reset from scratch . Also might need to use “file/invalidate cache” (in android studio).
Read moreHow do I downgrade my JDK in flutter?
Go to File > Project Structure. Select the SDK Location section in the list of the left. Deselect the Use embedded JDK (recommended) option. Enter the absolute path of your installed JDK in the text box.
Read more