Because xxx depends on places_service >=0.1.0+1 which requires Flutter SDK version >=1.17.0, version solving failed.
i tried to used flutter clean
and flutter upgraded
but still got same problem
Also, tried to used flutter doctor -v
to checked, I got this information
Returning 1970-01-01 11:00:00.000 instead.
[!] Flutter (Channel unknown, 0.0.0-unknown, on Microsoft Windows [Version 10.0.22621.1702], locale zh-TW)
! Flutter version 0.0.0-unknown on channel unknown at C:flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
Cannot resolve current version, possibly due to local changes.
Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Unknown upstream repository.
Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
• Framework revision (), 1970-01-01 11:00:00.000
• Engine revision 2a3401c9bb
• Dart version 3.0.3
• DevTools version 2.23.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1702]
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.133
• Edge (web) • edge • web-javascript • Microsoft Edge 114.0.1823.43
[√] Network resources
• All expected network resources are available.
How do I can fix it problems because I changed my laptop than I need to reset all environment
2
Answers
it is because of your "places_service" package has not compatible with your current sdk. I can suggest you two ways for solving this issue.
When you run the command flutter doctor , you will get these type of result .
But , I found there are some issues with your flutter installation process .Because you have " ! Flutter version 0.0.0-unknown on channel unknown at C:flutter" while running flutter doctor . Kindly reinstall you flutter SDK . Also ,upgrade you place_service to latest version .