Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter project when run showing Error Invalid argument(s): The source must not be null

I'm new to flutter. I created a simple flutter project when I trying to run. I was getting this error Unexpected failure from adb: Invalid argument(s): The source must not be null

Error launching the application on emulator-5554 This is my simple flutter application code:

import `package:flutter/material.dart`;
 void main(){
    runApp(
       new Center(
        child: new Text(
          "hello, world",
           textDirection: TextDirection.ltr,
        )
       )
    );
 }

Can anyone suggest me what might be the issue? How should I have to fix it?

like image 900
Husna Avatar asked Jul 23 '18 07:07

Husna


1 Answers

This is the issue just because of ADB, Means your device or emulator not connected properly may be losing cable or anything else so please be verify first your device connected perfectly this issue regarding adb or device connection.

like image 67
Dhaval Solanki Avatar answered Sep 27 '22 18:09

Dhaval Solanki