Reputation: 1386
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?
Upvotes: 5
Views: 30405
Reputation: 611
When you connect the phone, there is options like USB Tethering, MIDI, PTP, file transfer etc... Choose PTP. If it doesn't work try MIDI. It will work.
Upvotes: 3
Reputation: 4705
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.
Upvotes: 6