You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you have a stable internet connection. pub get requires internet access to download dependencies from the pub.dev package repository.
Check if your Flutter SDK installation is correct and up to date. Verify that the FLUTTER_ROOT environment variable points to the correct Flutter SDK directory.
Confirm that the Flutter SDK cache is not corrupted. You can try running flutter clean to clear the cache and then attempt pub get again.
Verify that the PUB_ENVIRONMENT and PUB_CACHE environment variables are correctly set. In your case, it seems that they are already set to the appropriate values for Flutter.
Check if there are any issues with the pubspec.yaml file of your project. Ensure that all dependencies and their versions are specified correctly. You can also try removing any problematic dependencies temporarily and then run pub get to see if that resolves the issue.
If you are behind a proxy, make sure to configure the proxy settings for Dart and Flutter. You can set the necessary environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) or use the flutter config command to set the proxy configuration.
If none of the above steps resolve the issue, try creating a new Flutter project and see if pub get works without any problems. This will help determine if the issue is specific to your project or a general problem with your Flutter installation.
pub get failed
command: "C:\Users\mohda\Downloads\flutter_windows_3.7.10-stable\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub
--color --directory . get --example"
pub env: {
"FLUTTER_ROOT": "C:\Users\mohda\Downloads\flutter_windows_3.7.10-stable\flutter",
"PUB_ENVIRONMENT": "flutter_cli:get",
"PUB_CACHE": "C:\Users\mohda\AppData\Local\Pub\Cache",
}
exit code: 1
The text was updated successfully, but these errors were encountered: