When running a new application "flutter pub get" in Vscode keeps running without completion.I have tried flutter clean , and reopening vscode.
When running a new application "flutter pub get" in Vscode keeps running without completion.I have tried flutter clean , and reopening vscode.
I think you have to check the proper package name. Maybe you misspelled the package name or else your internet is not working fine.
I was facing same issue, I checked all package names, they were correct. I did run flutter clean and then flutter pub get and it's worked. Hope! this might be helpful if some one faces same issue as I was.
Try flutter clean command, also remove pubspec.lock file in root directory then re-run this command flutter pub get.
Actually it would be the issue related to the network rules in your system. means issue is related to IT team. they will unblock your firewall or use network proxy to fix this issue.
While my normal internet connection took more than 15 minutes, I connected to vpn from a different country and tried flutter pub get. It worked pretty fast.
I got the same issue and I resolved it by synchronizing date and hours of my computer. With an incorrect date, you can have some network issues.
(My computer's date was set to 'yesterday')