Reputation: 71
When I run flutter it will stops working. It shows "flutter exits unexpectedly" as error message.
github issues link: https://github.com/flutter/flutter/issues/16108
I am using Parrot linux operating system.
**
**
─[✗]─[dracula@parrot]─[~]
└──╼ $flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.3, on Linux, locale C.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
[✓] Connected devices (1 available)
• No issues found!
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Failed to send crash report due to a network error: SocketException: Failed host lookup: 'clients2.google.com' (OS Error: Temporary failure in name resolution, errno = -3)
Crash report written to /home/dracula/flutter_10.log;
please let us know at https://github.com/flutter/flutter/issues.
Upvotes: 7
Views: 4379
Reputation: 1
Run command as an administrator or try creating the project on any other drive than C
Upvotes: 0
Reputation: 52
Try upgrading dart version . RUn the following command .
brew upgrade dart.
I hope this helps.
Upvotes: 0
Reputation: 354
Have you tried to make another new fresh project? If not please make a new one instead by entering this command flutter create myapp
on your console/terminal and then enter its directory.
Attach your device or run the emulator by using flutter emulators --launch *your_emu_device*
and then hit flutter run
If you still see the same error, try to deleting your SDK and re-download it.
Upvotes: 2
Reputation: 450
It looks like you have something wrong with your network. Upgrade Flutter and try to use a VPN when you are using Flutter.
Upvotes: 2
Reputation: 1551
This is surely network problem. since flutter works mostly on the network make sure everything is fine on your network.
Upvotes: 2
Reputation: 1043
Try apt-get update and upgrade first. You may need to use sudo After that, run flutter doctor again.
Also, the error seems to suggest a network connectivity issue with 'clients2.google.com' so, please also check that your network connectivity is ok without blocking.
Upvotes: 3
Reputation: 630
Look at the file that the crash report is written to. In your case it's at/home/dracula/flutter_10.log. You will find out exactly why it crashed.
Upvotes: 2
Reputation: 775
Most of the time flutter quits unexpectedly due to connection error.Make sure the connection is on or reliable.I Think there is a network error.
Upvotes: 2