Flutter-AssetsAudioPlayer
Flutter-AssetsAudioPlayer copied to clipboard
Pub failed to delete entry because it was in use by another process
Hello Florent,
Pub failed to delete entry because it was in use by another process. This may be caused by a virus scanner or having a file in the directory open in another application.
All other libs that I've used work/resolve themselves fine across several Flutter apps - only this one fails. I know that is a generic failure, but I've tried all the usual fixes to work around it, and none have solved it (clearing caches, flutter clean, switching off virus checkers, running pub upgrade from command line, etc).
Lastly, it's not just me with the same problem with assets_audio_player - see here - 6 upticks on the third-ish comment down: https://stackoverflow.com/questions/67578189/pub-failed-to-delete-entry-because-it-was-in-use-by-another-process
Happy to add more details of my dev environment, & test possible solutions for you.
pub upgrade gives following error while downloading assests_audio_player
Downloading assets_audio_player 3.0.3+6... Pub failed to delete entry because it was in use by another process. This may be caused by a virus scanner or having a file in the directory open in another application. pub finished with exit code 1
I have tried all possible things. No luck.
same fix as soon as possible?
Same here. Downgrading to : 3.0.3+3 solves the issue.
I just had the issue. Run vscode as admin to resolve the problem. For Linux, I think some kind of sudo approach could do the trick.
An update: two steps worked for me. It's not clear if they're linked.
First step: Using the source directly in the project broke the need for an import. Not a good long-term, but it did work as a short-term fix. That's done like this:
- download the source & drop it into your project (same level as lib)
- in the 'dev_dependencies' section of pubspec.yaml, add:
assets_audio_player:
path: ./the_audio_sourcecode_directory Rebuild as normal.
Second step: After that I then re-tried the 'flutter pub get' / 'flutter pub upgrade' (can't remember which I ran first) on the command line, but using admin permissions as suggested above by CabraKill. That then worked. It didn't before.
It's not clear why that combination of the two resolved the deletion problem - some weird tool problem? But like I originally said - only this lib has the problem, all my other dependencies were just fine. Doubly weird.
Hopefully the above may get it working for a few more of you. Apart from that, it's a nice lib!
MetasImage.network doesn't work with ios any suggestions?!
Open Android Studio with Run as a administration.
Open Android Studio with Run as a administration.
perfect solution!