I'm installing Androit Studio in the second, but there were no such problems before. I am getting the following error in terminal -
fatal: git repository (or one of parent directories) not found: .git
Building flutter tool...
/home/daniil/snap/flutter/common/flutter/bin/internal/shared.sh: line 24: cd: /home/daniil/snap/flutter/common/flutter/packages/flutter_tools: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (2 tries left)
/home/daniil/snap/flutter/common/flutter/bin/internal/shared.sh: line 24: cd: /home/daniil/snap/flutter/common/flutter/packages/flutter_tools: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (1 tries left)
Command 'pub upgrade' still failed after 10 tries, giving up.
Also, I tried to create a new flutter project in android studio, and tried to specify the path to the flutter sdk, but I get the message -
Flutter SDK is not found in the specified location.
Although, I drive the path according to the results of the flutter sdk-path conmada
Please help solve this problem!
PS: It's definitely not a network problem.
PSS: deleting the cache folder doesn't help
PSS: When I command git status, I get the error "On the stable branch
Your branch has been updated to reflect "origin/stable".
nothing to commit, no changes in working directory
All activies -
daniil#daniil-laptop:~/flutter$ git status
On the stable branch
Your branch has been updated to reflect "origin/stable".
nothing to commit, no changes in working directory
daniil#daniil-laptop:~/flutter$ flutter doctor
fatal: git repository (or one of parent directories) not found: .git
Building flutter tool...
/home/daniil/snap/flutter/common/flutter/bin/internal/shared.sh: line 24: cd: /home/daniil/snap/flutter/common/flutter/packages/flutter_tools: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
/home/daniil/snap/flutter/common/flutter/bin/internal/shared.sh: line 24: cd: /home/daniil/snap/flutter/common/flutter/packages/flutter_tools: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
I decided to remove the flutter that I installed via snap. And cloned the repository from git. But I realized that there are no cache folders.
When executing all the above commands - the errors do not change
Related
I trying to create a new flutter project under VS Code IDE. I install the flutter extension, but not running any project its shows running status in the notification as well shows the output as follows.
Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (3 tries left)
Running pub upgrade...
Could not find a file named "pubspec.yaml" in "C:\src\Flutter\.pub-cache\hosted\pub.dartlang.org\analyzer-1.5.0".
Error (66): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (2 tries left)
Running pub upgrade...
Could not find a file named "pubspec.yaml" in "C:\src\Flutter\.pub-cache\hosted\pub.dartlang.org\analyzer-1.5.0".
Error (66): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (1 tries left)
Error: 'pub upgrade' still failing after 10 tries.
fatal: not a git repository (or any of the parent directories): .git Could not find a file named "pubspec.yaml" in "C:\Windows\System32". pub get failed (66; Could not find a file named "pubspec.yaml" in "C:\Windows\System32".)
hi everyone
I got this error message every time when I tried to create a flutter project by an android studio or by cmd
I checked flutter doctor command and appear no problems about flutter installation
so any advice about this problem?
[error message when I used android studio 1
flutter doctor message
You can try below steps:
First, you reboot(restart) your PC.
Before opening anything, you delete your flutter folder.
Unzipped a new flutter installation into the same directory.
Inside your project directory You run flutter packages get
Then open the IDE and everything will be working.
Refer flutter issue for more information.
When I had previously setup flutter, all was working well, however, now all of the flutter commands are resulting in this error:
Error: Error when reading '../../../../documents/flutter/bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot': No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (1 tries left)
Command 'pub upgrade' still failed after 10 tries, giving up.```
How do I solve this?
Looks like something went wrong while downloading the dart sdk. Can you delete the cache folder inside bin and then run flutter doctor again? What's the output?
Are you by any chance behind a firewall (or using a proxy) that might be blocking the download of the dart sdk?
Problem
For flutter projects when trying to do CI via Fastlane or Code magic getting an error.
Error(s)
Unable to export archive: 2019-07-19 06:35:19.256
xcodebuild[3381:21183] [MT] IDEDistribution: -[IDEDistributionLogging
_createLoggingBundleAtPath:]: Created bundle at path '/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/Runner_2019-07-19_06-35-19.252.xcdistributionlogs'.
error: exportArchive: Symbols tool failed Error
Domain=IDEFoundationErrorDomain Code=1 "Symbols tool failed"
UserInfo={NSLocalizedDescription=Symbols tool failed} ** EXPORT FAILED
**
Some Extra Detail(s)
This issue is coming with recent master commits in Flutter git.
When using Flutter stable git branch we don't have this issue.
Had the same issue. Running pod install solved on my side. I'm using local Fastlane on flutter beta channel.
I am unable to update flutter on osX.
When I run:
flutter doctor
I get the following error:
Because flutter_tools depends on xml >=3.5.0 which requires SDK version >=2.3.0 <3.0.0, version solving failed.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
The current Dart SDK version is 2.3.0-dev.0.5.flutter-a1668566e5.
I have not idea how to solve this issue since I cannot issue any flutter commands.
I tried to cd into the flutter/bin directory and do :
git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor
But this did not solve my issues.
Any ideas ? I don't have sudo rights.