I'm trying to get packages, when I run flutter pub get nothing happens or it get stuck
PS C:\Users\user\Desktop\clone\my_app> flutter pub get
Running "flutter pub get" in my_app... /
Tried upgrading flutter.
Tried running it on multiple networks.
when I used flutter pug get --verbose this was the output:
cloud_firestore","homepage":"https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_web","repository":"https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_web","version":"3.1.0","environment":{"sdk":">=2.16.0
<3.0.0","flutter":">=1.20.0"},"dependencies":{"_flutterfire_internals":"^1.0.9","cloud_firestore_platform_interface":"^5.9.0","collection":"^1.0.0","firebase_core":"^2.3.0","firebase_core_web":"^2.0.1","flutter":{"sdk":"flutter"},"flutter_web_plugins":{"sdk":"flutter"},"js":"^0.6.3"},"dev_dependencies":{"firebase_core_platform_interface":"^4.5.2","flutter_test":{"sdk":"flutter"},"mockito":"^5.0.0"},"flutter":{"plugin":{"platforms":{"web":{"pluginClass":"FirebaseFirestoreWeb","fileName":"cloud_firestore_web.dart"}}}}},"archive_url":"https://pub.dartlang.org/packages/cloud_firestore_web/versions/3.1.0.tar.gz","archive_sha256":"3c9a77380e6a053129c2cb6dbe8ef1b708f4350ce0dad220d2c05cd68a2d467f","published":"2022-11-17T14:00:52.599889Z"},{"version":"3.1.1","pubspec":{"name":"cloud_firestore_web","description":"The web implementation of
cloud_firestore","homepage":"https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_web","repository":"https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_web","version":"3.1.1","environment":{"sdk":">=2.16.0
<3.0.0","flutter":">=1.20.0"},"dependencies":{"_flutterfire_internals":"^1.0.10","cloud_firestore_platform_interface":"^5.9.1","collection":"^1.0.0","firebase_core":"^2.4.0","firebase_core_web":"^2.0.2","flutter":{"sdk":"flutter"},"flutter_web_plugins":{"sdk":"flutter"},"js":"^0.6.3"},"dev_dependencies":{"firebase_core_platform_interface":"^4.5.2","flutter_test":{"sdk":"flutter"},"mockito":"^5.0.0"},"flutter":{"plugin":{"platforms":{"web":{"pluginClass":"FirebaseFirestoreWeb","fileName":"cloud_firestore_web.dart"}}}}},"archive_url":"https://pub.dartlang.org/packages/cloud_firestore_web/versions/3.1.1.tar.gz","archive_sha256":"b6a5712dc5d74473249b0777b93e6adf0ae68aeabae2699238d4647f3d5e1624","published":"2022-12-08T14:07:35.355432Z"},{"version":"3.2.0","pubspec":{"name":"cloud_firestore_web","description":"The web implementation of
cloud_firestore","homepage":"https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_web","repository":"https://github.com/firebase/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore_web","version":"3.2.0","environment":{"sdk":">=2.16.0
<3.0.0","flutter":">=1.20.0"},"dependencies":{"_flutterfire_internals":"^1.0.11","cloud_firestore_platform_interface":"^5.10.0","collection":"^1.0.0","firebase_core":"^2.4.0","firebase_core_web":"^2.0.2","flutter":{"sdk":"flutter"},"flutter_web_plugins":{"sdk":"flutter"},"js":"^0.6.3"},"dev_dependencies":{"firebase_core_platform_interface":"^4.5.2","flutter_test":{"sdk":"flutter"},"mockito":"^5.0.0"},"flutter":{"plugin":{"platforms":{"web":{"pluginClass":"FirebaseFirestoreWeb","fileName":"cloud_firestore_web.dart"}}}}},"archive_url":"https://pub.dartlang.org/packages/cloud_firestore_web/versions/3.2.0.tar.gz","archive_sha256":"2d7339bf3f79adcdb123a88e908474478b060317332189bdd5dcb2d498952127","published":"2022-12-22T12:35:55.126423Z"}],"_fetchedAt":"2022-12-28T11:16:24.333312"}
This is the last 6 lines I get
any kind of help will be appreciated.
I recently downloaded flutter and other related apps to my pc.I am however unable to run flutter doctor on the terminal.I am also unable to create a new flutter project on android studoi. Each time I try to do any of the above , I get the error
C:\WINDOWS\system32>flutter doctor
Cannot open file, path = 'pubspec.lock' (OS Error: The parameter is incorrect.
, errno = 87)
Running "flutter pub get" in flutter_tools...
pub get failed (66; , errno = 87))
C:\Windows\System32>
I have tried updating the path in my environment variables but that failed. Please help.
Whenever I run flutter doctor or flutter pub get, I am getting the following error
Pub failed to rename directory because access was denied.
This may be caused by a virus scanner or having a file in the directory open in another application.
Running "flutter pub get" in flutter_tools...
pub get failed (1; in the directory open in another application.)
I have tried some commands, ran the commands in administrator mode, but still getting the same error.
For me it helped to delete the 'pubspec.lock' file in the project folder and the run flutter pub get again
The source of my problem was that I had flutter installed directly in the C directory. After moving it to another directory (worked for me under MyUser/Downloads) the problem was solved.
I also faced a similar problem.
so, running flutter clean in terminal solved the problem.
I have deactivated my Anti-Virus and it worked for me! - Deactivate Antivirus
Hy hope so all are good and fine! i am new to flutter and after updating flutter version to 2.5 i am facing this type of errors as in images below enter image description here
enter image description here
Error is:
flutter pub get
Could not resolve URL "https://pub.dartlang.org".
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Could not resolve URL "https://pub.dartlang.org".
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
Running "flutter pub get" in flutter_application_1...
Just accept android licenses to the run below command on terminal, I also face this problem when I upgrading my flutter and I have solve my issue on below command, hope its help to you
flutter doctor --android-licenses
And accept the terms on the terminal
i am using linux ubunto :
this is output of "echo $PATH":
when i type "flutter doctor", the terminal goes to next line stuck at this point...like i should be writing more...
"flutter doctor":
what am i missing here to get flutter command working ?!
any help would be much appreciated.
Try to re-install flutter SDK, worked for me.