Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

**

  • Terminal Output:

**

─[✗]─[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.
like image 320
Susil Kumar Avatar asked Apr 01 '18 03:04

Susil Kumar


6 Answers

try flutter upgrade and then check flutter doctor

like image 64
SABDAR SHAIK Avatar answered Nov 18 '22 06:11

SABDAR SHAIK


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.

like image 45
LiveRock Avatar answered Nov 18 '22 06:11

LiveRock


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.

like image 21
Haileapp Avatar answered Nov 18 '22 06:11

Haileapp


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.

like image 41
Ememobong AkpanEkpo Avatar answered Nov 18 '22 07:11

Ememobong AkpanEkpo


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

like image 2
Sushanth Kille Avatar answered Nov 18 '22 07:11

Sushanth Kille


It looks like you have something wrong with your network. Upgrade Flutter and try to use a VPN when you are using Flutter.

like image 2
Jidong Chen Avatar answered Nov 18 '22 06:11

Jidong Chen