Reputation: 75
As stated in the title, flutter runs pub upgrade every time i cold start an app. It takes a long time every time it does that, and as far as im concerned, it shouldn't do that in the first place. I see this every time i start an app
'git' is not recognized as an internal or external command,
operable program or batch file.
Building flutter tool...
Running pub upgrade...
Git error message is something that pops up every time as well. I had problems installing git at the start and i had this exact same error message too. But it does the same in cmd too, no matter what command i use. If anyone knows how to fix this, i would greatly appreciate the help. Here is what i get when running flutter doctor -v in cmd:
operable program or batch file.
Building flutter tool...
Running pub upgrade...
[√] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.18363.1316], locale en-US)
• Flutter version 1.22.6 at C:\src\flutter
• Framework revision 9b2d32b605 (8 days ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Admin\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[!] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• M2007J20CG (mobile) • 3dc8c919 • android-arm64 • Android 10 (API 29)
! Doctor found issues in 1 category.
Upvotes: 1
Views: 1798
Reputation: 1
I had this problem before and installing git then add it path to system variable solved the problem. Just make sure you can run 'git' command
Upvotes: -1
Reputation: 1248
You are getting the git error because you don't have Git installed in your Windows OS.
To install Git, go to this link and download Git on your system.
For the Flutter Warning, you need to add the Flutter Plugin in your Android Studio(AS).
To install the Plugin these:
File
-> Settings
-> Search for Plugins
You seem to be starting Flutter so I advice you to read the Flutter Documentation. Every step is clearly defined there.
Upvotes: 2