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.
I've been struggling for days and couldn't solve this problem I need your help. I bought a package and tried all the commands I wanted to run first. "flutter pub get, flutter upgrade, etc.." but the error is still not resolved, please help.
enter image description here
enter image description here
After installing flutter sdk, android studio, and flutter plugin..
*1st I copied Android SDK tools manually because android studio didn't download it from web !!
*2nd When I tried to write "flutter doctor" in the command line, it didn't going well, and this is what actually happend.
PS C:\Users\MQ> flutter doctor -v
Got TLS error trying to find package node_preamble at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Got TLS error trying to find package node_preamble at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
Got TLS error trying to find package node_preamble at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 3 in 4 seconds...
Running "flutter pub get" in flutter_tools...
|
I had same issue, I changed my network connection but I have had same issue. So to resolve this problem I changed flutter version to 1.22.6, This version works for me and I didn't get these errors with this version.
I recently changed some things in my project ( not in the pubspec.yaml file until then ) and since then, everytime I open the project, a message pops up in the bottom right corner saying "Flutter Setup: Running pub upgrade ".
I tried:
Installing dart and flutter extentions new.
Reinstalling VS-Code
Delete the Versions next to the dependencies and re-adding the newest version of each package.
To reproduce:
clone "https://github.com/IfClause/info_app_project.git" and open in VS-Code.
Thanks!
Output of 'flutter pub upgrade':
Running pub upgrade...
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
Running pub upgrade...
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (7 tries left)
Running pub upgrade...
And so on.
Sometimes there are some mysterious issues with Flutter's cache.
If it is the case, flutter clean && flutter doctor should do it for you.
Also, it can happen to people with poor connections or behind firewalls.