When I run my flutter application it show
Waiting for another flutter command to release the startup lock
this messages and not
It seems like a network issue. I turned off my wi-fi and connected my laptop on a 4G connection by my phone an it works in 5,9s
Nothing of ALL these answers didn't helped me.
The only one solution was to remove whole flutter stuff (and reinstall flutter from git):
<flutter directory>
<user>/.flutter_tool_state
<user>/.dart
<user>/.pub-cache
<user>/.dartServer
<user>/.flutter
In Android Studio, It's Work for me
Stop your app if it still runs on the phone or disconnect the your testing device.
Then try to install the package again.
Turn off Android Studio.
Open flutter installation directory /bin/cache.
Delete lockfile.
At this point, you can execute the flutter related command on the command line to solve the problem perfectly.
There are some action to do:
1- in pubspec.yaml press "packages get" or in terminal type " flutter packages get" and wait seconds.
if this doesn't work :
2-type flutter clean then do step(1)
if this doesn't work too :
3-type killtask /f /im dart.exe
if this doesn't work too :
4- close android studio and then restart your pc.
Did most of the previous solutions but it didn't work for me so i just left the laptop connected to the internet with VS-code opened then i switched if off for a while and put it back on and it worked