[英]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. 尝试运行时,我创建了一个简单的flutter项目。 I was getting this error Unexpected failure from adb: Invalid argument(s): The source must not be null
我收到此错误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: Error launching the application on emulator-5554
这是我简单的flutter应用程序代码:
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? 我该如何解决?
这仅仅是由于ADB引起的问题,这意味着未正确连接的设备或仿真器可能会丢失电缆或其他任何东西,因此请首先验证您的设备是否完美连接了有关adb或设备连接的问题。
When you connect the phone, there is options like USB Tethering, MIDI, PTP, file transfer etc... Choose PTP. 当您连接手机时,有USB共享,MIDI,PTP,文件传输等选项。选择PTP。 If it doesn't work try MIDI. 如果不起作用,请尝试使用MIDI。 It will work. 它会工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.