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,180 points
1,094 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,220 points

Related Questions In Others

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
209 views
0 votes
1 answer

Using unserialize in PHP throws the same error repeatedly

I googled 'Node no longer exists', and ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
581 views
+2 votes
2 answers
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,220 points
919 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,220 points
3,341 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,220 points
1,901 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,220 points
1,214 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,220 points
837 views