How to fix Flutter pub get failed | Flutter error

Опубликовано: 18 Февраль 2026
на канале: DbugStudio
26,599
43

#how_to
#DbugStudio
#Flutter
#android _studio

In this video, we will discuss how to troubleshoot and how to fix the "pub get failed" error that can occur when working with the Flutter framework. This error can be caused by a variety of factors, including issues with your dependencies, conflicts with other packages, or problems with your internet connection. We will walk through some common solutions, such as running "flutter clean" and updating your dependencies, as well as more advanced techniques for resolving the issue. Whether you're a beginner or an experienced developer, this video will provide valuable insights and tips for fixing the "pub get failed" error and getting your Flutter projects up and running again.

Follow the command :
Open .bashrc file by this command
nano ~/.bashrc
Add this text to .bashrc and then save it
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
And then enter this command for updating .bashrc file
source ~/.bashrc

Tags:
#flutter_error
#flutterdeveloper
#android #android_studio_flutter
#android_studio_linux
#android_studio_ubuntu
#build_error
#build_failed_with_an_exception
#dart_tutorial
#fix_flutter error
#flutter_app_development
#flutter_build_error
#flutter_course
#flutter_doctor
#flutter_for_beginners
#flutter_tutorial
#flutter_tutorial_for_beginners
#flutter_ubuntu
#gradle_task_failed
#issue_flutter
#loading_new_package
#native_mobile_app
#server_unavailable
#solutions_to_flutter
#ubuntu

Copyright © DbugStudio. Any reproduction or illegal distribution of the content will result in immediate action against the person concerned.