Susil Kumar
Susil Kumar

Reputation: 71

flutter exits Unexpectedly

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

Answers (9)

Abhishek Khanal
Abhishek Khanal

Reputation: 1

Run command as an administrator or try creating the project on any other drive than C

Upvotes: 0

A.S.M.Nesar Uddin
A.S.M.Nesar Uddin

Reputation: 52

Try upgrading dart version . RUn the following command .

 brew upgrade dart.

I hope this helps.

Upvotes: 0

Richie P.
Richie P.

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

Jidong Chen
Jidong Chen

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

Sushanth
Sushanth

Reputation: 1551

This is surely network problem. since flutter works mostly on the network make sure everything is fine on your network.

Upvotes: 2

LiveRock
LiveRock

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

Ememobong AkpanEkpo
Ememobong AkpanEkpo

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

Haileapp
Haileapp

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

SABDAR SHAIK
SABDAR SHAIK

Reputation: 671

try flutter upgrade and then check flutter doctor

Upvotes: 4

Related Questions