Error waiting for a debug connection The log reader stopped unexpectedly

0 votes

Hi Guys,

I am trying to run the flutter run command, but it is showing me the below error.

C:\Users\Nadeem Akhter\Desktop\vscode\220720\app> flutter run
Launching lib\main.dart on vivo 1723 in debug mode...
Parameter format not correct -
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        25.3s
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...                        15.9s
Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on vivo 1723.

I have attached the script below.

import 'package:flutter/material.dart';
void main() {
  var x = Text(
    'Hello',
  );
  runApp(x);
}
Jul 23, 2020 in Others by akhtar
• 38,260 points
2,508 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to add textDirection in your code. The text direction must be provided to APIs that render text or layout boxes horizontally so that they can determine which direction to start in: either right-to-left, TextDirection.rtl; or left-to-right, TextDirection.ltr.

import 'package:flutter/material.dart';
void main() {
  var x = Text(
    'Hello',
    textDirection: TextDirection.ltr,
    textAlign: TextAlign.center,
  );
  runApp(x);
}
answered Jul 23, 2020 by MD
• 95,460 points

Related Questions In Others

0 votes
1 answer

"The underlying connection was closed: An unexpected error occurred on a send." With SSL Certificate

The solution for this for me was ...READ MORE

answered Feb 18, 2022 in Others by Rahul
• 9,680 points
11,404 views
0 votes
1 answer

Change the permission for a file created by me in linux

If you are the system administrator or ...READ MORE

answered Mar 8, 2019 in Others by Nabarupa
1,072 views
0 votes
1 answer

Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm

Over two years has passed, now and ...READ MORE

answered Feb 11, 2022 in Others by Soham
• 9,710 points
3,127 views
0 votes
1 answer

What is pubspec.yaml file in Flutter?

Hi@akhtar, It is the project's configuration file that ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,460 points
3,391 views
0 votes
1 answer

Error: No pubspec.yaml file found.

Hi@akhtar, You need to run this command from ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,460 points
9,007 views
0 votes
1 answer

How to launch an emulators from Flutter?

Hi@akhtar, Before launching emulators you should check if ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,460 points
6,260 views
0 votes
1 answer

Error waiting for a debug connection: The log reader stopped unexpectedly

Hi@akhtar, You need to execute flutter clean command in your project ...READ MORE

answered Jul 24, 2020 in Others by MD
• 95,460 points
6,986 views
0 votes
1 answer

Error cannot provide both a color and a decoration in Flutter container.

Hi@akhtar, The color and decoration arguments cannot both be supplied, since it ...READ MORE

answered Jul 29, 2020 in Others by MD
• 95,460 points
5,626 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP