Flutter IOS directory has been accidentally deleted
Oops; flutter has exited unexpectedly: "FileSystemException: Deletion failed, path = 'C:\Users\USER\AndroidStudioProjects\flutter_project\.ios' (OS Error: The directory is not empty. , errno = 145)".
The solution to this problem is below.
THE SOLUTION IS:
RUN THE COMMAND BELOW IN YOUR FLUTTER PROJECT
1. flutter clean
2. flutter pub get
AND ERROR WILL BE GONE
Related
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 started flutter these days. I'm trying to make an audio drum app.So I added the dependencies to file pubspec.yaml
audioplayers: ^0.19.1
But when I click 'pub get' I get this error.
Cannot create link, path = 'C:\src\flutter\flutter.pub-cache_temp\dir1b96d188\ios\Classes\AudioplayersPlugin.h' (OS Error: Required privilege is not provided by client.
, errno = 1314)
pub get failed (66; , errno = 1314))
Use audioplayers 0.20.1
Then go to .../android/buildgradle and change ext.kotlin_version to '1.4.32'
That worked for me.
I'm trying to use the image_picker_web package,(https://pub.dev/packages/image_picker_web) and have put:
image_picker_web: ^1.0.9
in my pubspec.yaml file.
When I try building my project for iOS, I get the following error:
[ios/.symlinks/plugins/image_picker_web/example] flutter pub get
Running "flutter pub get" in example...
Cannot open file, path = '/Users/username/.pub-cache/global_packages/image_picker_web_example/pubspec.lock' (OS Error: No such file or directory, errno = 2)
pub get failed (66; Cannot open file, path = '/Users/username/.pub-cache/global_packages/image_picker_web_example/pubspec.lock' (OS Error: No such file or directory, errno = 2))
exit code 66
With no other code in the project that uses that package, I get the same error. The only way to avoid it is to comment out image_picker_web: ^1.0.9 in my pubspec.yaml and run 'flutter pub get'
I created an issue in their git repo, under the assumption that it's a bug. Is this the case? Are there any workarounds? (perhaps ignoring a package when building for a different platform?)
I ran the following command to fix a similar issue.
Remove all existing caches
sudo rm -rf ~/.pub-cache
Repair the cache
flutter pub cache repair
Reinstall the dependencies
flutter packages get
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 try to run flutter doctor or any flutter command, it doesn't run and giving me this error. I've even deleted .gitconfig file from my system but still having same issue. I am using Flutter on my window pc Window 10
fatal: bad config line 1 in file .git/config
Updating flutter tool...
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Failed to send crash report. Server responded with HTTP status code 400
Crash report written to C:\Users\DTI-3\flutter_03.log;
please let us know at https://github.com/flutter/flutter/issues.
I've deleted the config file from C:\flutter\.git flutter folder and tried with flutter doctor command. its working fine for me now. Earlier I was trying to make it run by deleting config file from another location, delete the file from flutter folder(flutter sdk path).