PS C:\Users\HERIBERTO> flutter --version fatal: unterminated line in .git/packed-refs: ... Failed to find the latest git commit date: VersionCheckError: Command exited with code 128: git -c log.showSignature =false log -n 1 --pretty=format:%ad --date=iso Standard out: Standard error: fatal: unterminated line in .git/packed-refs: ...
Returning 1969-12-31 19:00:00.000 instead. Flutter • channel unknown • unknown source Framework • revision () • 1969-12-31 19:00:00.000 Engine • revision e85ea0e79c Tools • Dart 2.17.6 • DevTools 2.12.2 PS C:\Users\HERIBERTO>
This shows when running the "flutter --version" command.
and if I update it from Android studio I get this:
fatal: unterminated line in .git/packed-refs: ... Resolving dependencies... The current Flutter SDK version is 0.0.0-unknown.
Because crudseb depends on fluttertoast >=4.0.0 which requires Flutter SDK version >=1.10.0, version solving failed. pub finished with exit code 1 Process finished with exit code 1
It seems the problem is because you need some dependencies:
For a correct installation and configuration of Flutter use "Flutter Doctor"
From a console window where you have the Flutter directory, run the following command
Example:
This will perform a search for dependencies that you need to complete the correct configuration.