flutter中扫描WiFi的问题,为什么用wifi_configuration.dart的package去扫描会出现get到的值为空?请问是什么情况?

flutter:
import 'package:wifi_configuration/wifi_configuration.dart';
调用这个package去扫描WiFi,扫描到的结果为空,
void getConnectionState() async {
var listAvailableWifi = await WifiConfiguration.getWifiList();
var listWifi = listAvailableWifi.toString();
print("get wifi list : " + listAvailableWifi.toString());
print(listWifi.contains("Nebula"));
print(listAvailableWifi.length);
}
结果如下
I/flutter (20369): get wifi list : []
I/flutter (20369): false
I/flutter (20369): 0
I/flutter (20369):
请问是什么情况

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
flutter Android APP开发,如何用wifi_configuration 和 wifi 这两个插件去scan wifi并且自动连接到扫描到的wifi ?

flutter 扫描WiFi并连接的功能 连接到指定的WiFi的SSID import 'package:wifi_configuration/wifi_configuration.dart'; import 'package:wifi/wifi.dart';这两个package怎么使用?

flutter开发 Android app,如何实现扫描到指定的WiFi的SSID后自动跳转到下一页

1.扫描附近 wifi 2.连线到指定名称的wifi 3.如果有多个则选择一个(选择的条件?) 4.目前找到wifi_configuration

安装flutter,运行flutter_console.bat时提示错误。

1.从官网下载flutter_windows_v1.0.0-stable.zip,然后将其解压到D:\flutter。 2.运行flutter_console.bat 提示MySQL的错误![图片说明](https://img-ask.csdn.net/upload/201812/15/1544883640_383021.png) 不知道这是什么原因? 我本地有mysql,设置了环境变量,也能登录mysql,就是在flutter console控制台报这个mysql的错误。如图: ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544883964_477085.png) 然后我继续执行,flutter doctor, ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544885595_295969.png) 然后我打开Android Studio 创建flutter项目,项目创建完之后也提示mysql的错误,并不能进入项目,如图 ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544885356_248737.png) 因为有这个错误导致无法成功创建flutter项目 flutter_console.bat文件的内容是: ![图片说明](https://img-ask.csdn.net/upload/201812/18/1545140762_896457.png) 看bat文件也并没有用到mysql的内容

flutter 软键盘切换问题

flutter 在使用百度键盘的时候,TextField 设置了 keyboardType 但是没用, 在多个TextField切换的时候,软键盘的类型并不是及时的,有时候需要先关闭软键盘,再点击获取焦点才能显示正确的键盘类型。 测试了百度输入法,搜狗输入法,讯飞输入法。 百度输入法不能及时变更键盘类型,搜狗和讯飞可以。 求flutter的大佬告诉我这是为啥。咋弄~ ![图片说明](https://img-ask.csdn.net/upload/202004/10/1586509209_316095.gif)

flutter中使用socket导致UI卡顿?

1. 在flutter使用tcp请求服务器的时候,在listen中对tcp流进行解析,解析过程包含拆包和拼包,正常情况下都没有问题,但是当服务器推送的流过快的时候,导致UI卡死,有人有好的建议吗? 2. 代码如下: ``` Future<Socket> _connect(String ip, int port) async{ if(!isConnect()) { try { _socket = await Socket.connect(ip, port, timeout: Duration(seconds: 20),); _socket.listen(_onData, onError: _onError, onDone: _onDone); }catch(e){ if(e is SocketException){ _onTimeout(); }else{ print("error : $e"); } } } return _socket; } ``` _onData中是一些拼包拆包的业务逻辑,当tcp流包含多个业务报文的时候,onData中会循环拆分包直至拆分完成,每个包都会回调到具体的业务逻辑。。现在问题是,如果服务器发送的是base64图片的话,系统就会卡死,请问 下这个问题怎么解决?

vscode flutter连接夜神模拟器问题

vscode flutter链接夜神模拟器问题 ![图片说明](https://img-ask.csdn.net/upload/201907/11/1562812474_625104.png) ![图片说明](https://img-ask.csdn.net/upload/201907/11/1562812489_307528.png) vscode flutter连接夜神模拟器,运行代码的时候,和模拟器连接的前面的那些下载翻墙的问题解决了,然后是这个,百度了好久,实在找不到解决办法 emmm他说我少了个主类还是怎么的,这个要怎么调啊 麻烦大家了

flutter连接不上虚拟设备,真机也连接不上,flutter检测全部正常,只有设备检测不到

flutter连接不上虚拟设备,真机也连接不上,flutter检测全部正常,只有设备检测不到。打开创建的虚拟设备,执行flutter doctor也是显示的无设备,愁死了。 有偿解决!有偿! ![图片说明](https://img-ask.csdn.net/upload/202005/06/1588751644_733707.png)

iOS 获取连接的wifi的ssid的方法是不是不能用了?

现在获取连接wifi的ssid的方法是不是不能用了? + (NSString *)getCurrentWifiSSID { NSString *ssid = nil; NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces(); for (NSString *ifnam in ifs) { NSDictionary *info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam); NSLog(@"%@", info); if (info[@"SSID"]) { ssid = info[@"SSID"]; } } return ssid; }

android9.0无法连接指定wifi

android9.0的手机,切换wifi网络无法正常连接。 当切换到不可上网的wifi,代码无法连接该指定wifi。 当切换到可以上网的wifi,代码可以连接该指定wifi。 求解,这是为什么,该怎么处理

flutter项目无法引入qr_flutter包,packages get时候报错,望各位大佬指点迷津!

Package qr_flutter has no versions that match >=1.1.3 <2.0.0 derived from: - zhihu depends on version ^1.1.3 ---- Log transcript ---- FINE: Pub 2.0.0-dev.16.0 IO : Spawning "cmd /c ver" in F:\ECAVC\zhihu-flutter-master\zhihu-flutter-master\. IO : Finished ver. Exit code 0. | stdout: | | | | Microsoft Windows [Version 6.1.7601] | Nothing output on stderr. MSG : Resolving dependencies... SLVR: Solving dependencies: | - cupertino_icons ^0.1.0 from hosted (cupertino_icons) (locked to 0.1.1) | - flutter any from sdk (flutter) (locked to 0.0.0) IO : Get versions from https://pub.flutter-io.cn/api/packages/qr_flutter. IO : HTTP GET https://pub.flutter-io.cn/api/packages/qr_flutter | Accept: application/vnd.pub.v2+json | user-agent: Dart pub 2.0.0-dev.16.0 IO : HTTP response 200 OK for GET https://pub.flutter-io.cn/api/packages/qr_flutter | took 0:00:01.060953 | connection: keep-alive | transfer-encoding: chunked | date: Fri, 28 Sep 2018 13:45:12 GMT | content-encoding: gzip | vary: Accept-Encoding | x-m-reqid: qWoAAP8YGXNIlFgV | content-type: application/json | x-xss-protection: 1; mode=block | x-source: C/200 | x-m-log: QNM:xs462;SRCPROXY:xs481;SRC:254;SRCPROXY:255;QNM3:553 | server: marco/2.6 | x-request-id: e6d1190402c12d9729c11b58b7ab7625 | via: S.mix-gd-can-007, T.10.D, V.mix-gd-can-007, T.3.D, M.cun-hn-csx-005 | x-frame-options: SAMEORIGIN | x-content-type-options: nosniff | x-qnm-cache: Validate,MissValidate SLVR: * start at root SLVR: | cupertino_icons 0.1.1 from hosted is locked SLVR: | * select cupertino_icons 0.1.1 from hosted SLVR: | | english_words 3.1.3 from hosted is locked SLVR: | | * select english_words 3.1.3 from hosted SLVR: | | | flutter 0.0.0 from sdk is locked SLVR: | | | * select flutter 0.0.0 from sdk SLVR: | | | | collection 1.14.5 from hosted is locked SLVR: | | | | * select collection 1.14.5 from hosted SLVR: | | | | | flutter_test 0.0.0 from sdk is locked SLVR: | | | | | * select flutter_test 0.0.0 from sdk SLVR: | | | | | | * select pub itself SLVR: | | | | | | | args 1.2.0 from hosted is locked SLVR: | | | | | | | * select args 1.2.0 from hosted SLVR: | | | | | | | | async 2.0.3 from hosted is locked SLVR: | | | | | | | | * select async 2.0.3 from hosted SLVR: | | | | | | | | | barback 0.15.2+14 from hosted is locked SLVR: | | | | | | | | | * select barback 0.15.2+14 from hosted SLVR: | | | | | | | | | | boolean_selector 1.0.2 from hosted is locked SLVR: | | | | | | | | | | * select boolean_selector 1.0.2 from hosted SLVR: | | | | | | | | | | | charcode 1.1.1 from hosted is locked SLVR: | | | | | | | | | | | * select charcode 1.1.1 from hosted SLVR: | | | | | | | | | | | | cli_util 0.1.2+1 from hosted is locked SLVR: | | | | | | | | | | | | * select cli_util 0.1.2+1 from hosted SLVR: | | | | | | | | | | | | | convert 2.0.1 from hosted is locked SLVR: | | | | | | | | | | | | | * select convert 2.0.1 from hosted SLVR: | | | | | | | | | | | | | | crypto 2.0.2+1 from hosted is locked SLVR: | | | | | | | | | | | | | | * select crypto 2.0.2+1 from hosted SLVR: | | | | | | | | | | | | | | | csslib 0.14.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | * select csslib 0.14.1 from hosted SLVR: | | | | | | | | | | | | | | | | glob 1.1.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | * select glob 1.1.5 from hosted SLVR: | | | | | | | | | | | | | | | | | html 0.13.2+2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | * select html 0.13.2+2 from hosted SLVR: | | | | | | | | | | | | | | | | | | http 0.11.3+16 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | * select http 0.11.3+16 from hosted SLVR: | | | | | | | | | | | | | | | | | | | http_multi_server 2.0.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | * select http_multi_server 2.0.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | http_parser 3.1.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | * select http_parser 3.1.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | io 0.3.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | * select io 0.3.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | isolate 1.1.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | * select isolate 1.1.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | js 0.6.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | * select js 0.6.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | logging 0.11.3+1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | * select logging 0.11.3+1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | matcher 0.12.1+4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | * select matcher 0.12.1+4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | meta 1.1.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | * select meta 1.1.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | mime 0.9.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | * select mime 0.9.5 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | mockito 2.2.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select mockito 2.2.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multi_server_socket 1.0.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select multi_server_socket 1.0.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | node_preamble 1.4.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select node_preamble 1.4.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_config 1.0.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select package_config 1.0.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_resolver 1.0.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select package_resolver 1.0.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path 1.5.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select path 1.5.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | plugin 0.2.0+2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select plugin 0.2.0+2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pool 1.3.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select pool 1.3.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pub_semver 1.3.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select pub_semver 1.3.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | quiver 0.28.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select quiver 0.28.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf 0.7.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf 0.7.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_packages_handler 1.0.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_packages_handler 1.0.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_static 0.2.7 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_static 0.2.7 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_web_socket 0.2.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_web_socket 0.2.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sky_engine 0.0.99 from path is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select sky_engine 0.0.99 from path SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_map_stack_trace 1.1.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_map_stack_trace 1.1.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_maps 0.10.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_maps 0.10.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_span 1.4.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_span 1.4.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack_trace 1.9.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select stack_trace 1.9.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stream_channel 1.6.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select stream_channel 1.6.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string_scanner 1.0.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select string_scanner 1.0.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | term_glyph 1.0.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select term_glyph 1.0.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test 0.12.30+1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select test 0.12.30+1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | analyzer 0.31.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select analyzer 0.31.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | front_end 0.1.0-alpha.9 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select front_end 0.1.0-alpha.9 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel 0.3.0-alpha.9 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select kernel 0.3.0-alpha.9 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | typed_data 1.1.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select typed_data 1.1.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | utf 0.9.0+3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select utf 0.9.0+3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vector_math 2.0.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select vector_math 2.0.5 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | watcher 0.9.7+6 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select watcher 0.9.7+6 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | web_socket_channel 1.0.6 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select web_socket_channel 1.0.6 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | yaml 2.1.13 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select yaml 2.1.13 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.2 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.1 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.0 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.0.0 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: BacktrackingSolver took 0:00:01.494368 seconds. | - Tried 1 solutions | - Requested 1 version lists | - Looked up 1 cached version lists | FINE: Resolving dependencies finished (1.5s). ERR : Package qr_flutter has no versions that match >=1.1.3 <2.0.0 derived from: | - zhihu depends on version ^1.1.3 FINE: Exception type: NoVersionException FINE: package:pub/src/entrypoint.dart 216 Entrypoint.acquireDependencies | package:pub/src/command/get.dart 38 GetCommand.run | package:args/command_runner.dart 194 CommandRunner.runCommand | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn> | dart:async new Future.sync | package:pub/src/utils.dart 103 captureErrors.<fn> | package:stack_trace Chain.capture | package:pub/src/utils.dart 118 captureErrors | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand | package:pub/src/command_runner.dart 116 PubCommandRunner.run | E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\pub\bin\pub.dart 8 main | ===== asynchronous gap =========================== | dart:async _Completer.completeError | package:pub/src/entrypoint.dart Entrypoint.acquireDependencies | ===== asynchronous gap =========================== | dart:async _asyncThenWrapperHelper | package:pub/src/entrypoint.dart 194 Entrypoint.acquireDependencies | package:pub/src/command/get.dart 38 GetCommand.run | package:args/command_runner.dart 194 CommandRunner.runCommand | ===== asynchronous gap =========================== | dart:async new Future.microtask | package:args/command_runner.dart 142 CommandRunner.runCommand | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn> | dart:async new Future.sync | package:pub/src/utils.dart 103 captureErrors.<fn> | package:stack_trace Chain.capture | package:pub/src/utils.dart 118 captureErrors | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand ---- End log transcript ---- pub get failed (1) ``` ```

flutter绘制页面时,闪退[ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.IllegalArgumentException: array == null

自动化测试过程中,发现进入APP拍摄页会出现引导弹窗,就会闪退,抓取log如下,希望有大神解决,找研发了,他们也没有办法 ``` 06-12 15:55:42.870 E/flutter ( 2064): [ERROR:flutter/flow/layers/transform_layer.cc(22)] TransformLayer is constructed with an invalid matrix. 06-12 15:55:42.870 I/chatty ( 2064): uid=10266(com.ghj.tongue) 3.ui identical 1 line 06-12 15:55:42.870 E/flutter ( 2064): [ERROR:flutter/flow/layers/transform_layer.cc(22)] TransformLayer is constructed with an invalid matrix. 06-12 15:55:42.909 I/flutter ( 2064): kang-----CameraHintDialog:宽度_60.0 高度_60.0 06-12 15:55:42.936 E/flutter ( 2064): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.IllegalArgumentException: array == null 06-12 15:55:42.936 E/flutter ( 2064): at android.opengl.Matrix.multiplyMM(Native Method) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$SemanticsNode.updateRecursively(AccessibilityBridge.java:2146) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$SemanticsNode.updateRecursively(AccessibilityBridge.java:2194) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$SemanticsNode.access$4300(AccessibilityBridge.java:1779) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge.updateSemantics(AccessibilityBridge.java:1289) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$1.updateSemantics(AccessibilityBridge.java:266) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.embedding.engine.FlutterJNI.updateSemantics(FlutterJNI.java:428) 06-12 15:55:42.936 E/flutter ( 2064): at android.os.MessageQueue.nativePollOnce(Native Method) 06-12 15:55:42.936 E/flutter ( 2064): at android.os.MessageQueue.next(MessageQueue.java:330) 06-12 15:55:42.936 E/flutter ( 2064): at android.os.Looper.loop(Looper.java:169) 06-12 15:55:42.936 E/flutter ( 2064): at android.app.ActivityThread.main(ActivityThread.java:7053) 06-12 15:55:42.936 E/flutter ( 2064): at java.lang.reflect.Method.invoke(Native Method) 06-12 15:55:42.936 E/flutter ( 2064): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:536) 06-12 15:55:42.936 E/flutter ( 2064): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) 06-12 15:55:42.936 E/flutter ( 2064): 06-12 15:55:42.936 F/flutter ( 2064): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(95)] Check failed: CheckException(env). ```

android开发中是否可以用flutter来专门制作界面交互然后用android原生java响应事件实现功能?

就是在android studio中,不再使用原生的XML布局来写界面,而是用flutter来做界面、做页面跳转等交互。然后java类文件是否可以响应flutter的一些控件事件,并把通信结果返回给flutter? <br> **总的来说就是是否可以用flutter替代android原生XML布局,flutter管界面和交互,android原生sdk管功能实现,并能互相通信?** <br> **我要怎么做?**

flutter静态资源的相对路径是什么

我将图片放在flutter项目下'assets/images/这个文件夹里,然后用File('assets/images/xxx.png').readAsBytes()读取其字节,控制台报错找不到文件或目录,用file类该如何以相对路径读取本地图片

flutter 打包后动画部分的组件屏幕适配问题

在写flutter的代码的时候为了让组件大小适配屏幕使用了flutter_screenUtil插件。在调试的时候是正常的,可以适配屏幕。但是打包之后就会失去效果。有没有遇到类似情况的朋友,希望可以给点建议,谢谢。下面是我的代码。 ``` import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter/animation.dart'; import 'package:omni/common/menuPage.dart'; import 'dart:async'; class Login extends StatefulWidget { _LoginState createState() => new _LoginState(); } class _LoginState extends State<Login> with TickerProviderStateMixin { Animation<RelativeRect> animationLogo; Animation<RelativeRect> animationAddress; AnimationController controllerAddress; AnimationController controllerLogo; AnimationController controllerName; double tabHeight = ScreenUtil().setHeight(300); double formHeight = ScreenUtil().setHeight(0); double submitHeight = ScreenUtil().setHeight(0); double loadingHeight = ScreenUtil().setHeight(0); double walletHeight = ScreenUtil().setHeight(0); double addressHeight = ScreenUtil().setHeight(0); double marketHeight = ScreenUtil().setHeight(0); double addressBottom = ScreenUtil().setHeight(0); bool isShowBalance = false; bool isShowAddressDetail = false; @override void initState() { // TODO: implement initState super.initState(); controllerLogo = new AnimationController( duration: const Duration(milliseconds: 1000), vsync: this); controllerName = new AnimationController( duration: const Duration(milliseconds: 1000), vsync: this); controllerAddress = new AnimationController( duration: const Duration(milliseconds: 1000), vsync: this); animationLogo = RelativeRectTween( begin: RelativeRect.fromLTRB( ScreenUtil().setWidth(250), ScreenUtil().setHeight(548), ScreenUtil().setWidth(250), ScreenUtil().setHeight(546)), end: RelativeRect.fromLTRB( ScreenUtil().setWidth(40), ScreenUtil().setHeight(50), ScreenUtil().setWidth(650), ScreenUtil().setHeight(1234)), ).animate(controllerLogo) ..addListener(() { if (animationLogo.isCompleted) { controllerName.forward(); } }); animationAddress = RelativeRectTween( begin: RelativeRect.fromLTRB( ScreenUtil().setWidth(0), ScreenUtil().setHeight(100), ScreenUtil().setWidth(0), ScreenUtil().setHeight(0)), end: RelativeRect.fromLTRB( ScreenUtil().setWidth(0), ScreenUtil().setHeight(100), ScreenUtil().setWidth(0), ScreenUtil().setHeight(600)), ).animate(controllerAddress) ..addListener(() { }); } @override Widget build(BuildContext context) { // TODO: implement build return new Scaffold( endDrawer: new Menu(), body: new Container( child: Stack( children: <Widget>[ PositionedTransition( rect: animationLogo, child: GestureDetector( onTap: () {}, child: Container( width: 100.0, height: 100.0, color: Colors.red, ), ), ), new Positioned( bottom: ScreenUtil().setHeight(1224), left: ScreenUtil().setWidth(120), child: SizeTransition( axis: Axis.vertical, sizeFactor: new Tween(begin: 0.0, end: 1.0).animate(controllerName), child: Container( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ new Container( child: new Text('OMNI'), ), new Container( child: new Text('WALLET'), ) ], ), ), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: tabHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new Container( child: new Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ new GestureDetector( onTap: () { tabHeight = ScreenUtil().setHeight(1100); formHeight = ScreenUtil().setHeight(950); submitHeight = ScreenUtil().setHeight(300); controllerLogo.forward(); setState(() {}); }, child: new Container( width: ScreenUtil().setWidth(314), padding: EdgeInsets.fromLTRB(0, 5, 0, 5), decoration: BoxDecoration( border: Border( right: BorderSide( width: 1, color: Color.fromRGBO(136, 152, 167, 1)))), child: new Text( 'LOGIN', textAlign: TextAlign.center, style: TextStyle( fontSize: ScreenUtil().setSp(40), letterSpacing: ScreenUtil().setSp(10), color: Color.fromRGBO(82, 126, 185, 1)), ), ), ), new GestureDetector( child: new Container( width: ScreenUtil().setWidth(315), padding: EdgeInsets.fromLTRB(0, 5, 0, 5), child: new Text( 'CREATE', textAlign: TextAlign.center, style: TextStyle( fontSize: ScreenUtil().setSp(40), letterSpacing: ScreenUtil().setSp(10), color: Color.fromRGBO(82, 126, 185, 1)), ), ), ), ], ), ), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: ScreenUtil().setHeight(40), left: ScreenUtil().setWidth(175), child: new Offstage( offstage: isShowBalance, child: FlatButton( onPressed: () { print('BALANCE CHECK'); }, padding: EdgeInsets.all(0), child: new Container( height: ScreenUtil().setHeight(60), width: ScreenUtil().setWidth(400), decoration: BoxDecoration( // color: Colors.blue, gradient: const LinearGradient(colors: [ Color.fromRGBO(164, 185, 216, 1), Color.fromRGBO(80, 119, 181, 1) ]), borderRadius: BorderRadius.circular(40)), child: new Text( 'BALANCE CHECK', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: ScreenUtil().setSp(30), height: 1.4), ), ), ), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: formHeight, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: submitHeight, child: new GestureDetector( onTap: () { tabHeight = ScreenUtil().setHeight(0); formHeight = ScreenUtil().setHeight(0); submitHeight = ScreenUtil().setHeight(0); loadingHeight = ScreenUtil().setHeight(1100); Timer timer = new Timer(new Duration(seconds: 2), () { loadingHeight = ScreenUtil().setHeight(0); walletHeight = ScreenUtil().setHeight(1100); addressHeight = ScreenUtil().setHeight(800); marketHeight = ScreenUtil().setHeight(400); setState(() {}); }); isShowBalance = true; setState(() {}); }, child: new Container( child: Center( child: new Text('SUBMIT'), )), ), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: loadingHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new Container(child: new Text('Loading...')), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: 0, child: new Container( child: new Stack( children: <Widget>[ new Positioned( child: AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: walletHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new GestureDetector( child: new Container( child: new Text('WALLET'), )), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new PositionedTransition( rect: animationAddress, child: AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: addressHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new Container( child: Column( children: <Widget>[ new GestureDetector( onTap: () { print(321); marketHeight = 0; controllerAddress.reverse(); isShowAddressDetail = false; setState(() {}); }, child: new Container( child: new Text('ADDRESS'), )), new Container( child: new GestureDetector( onTap: (){ print(123); // addressHeight = ScreenUtil().setHeight(350); isShowAddressDetail = true; controllerAddress.forward(); setState(() { }); }, child: new Container( child: Text('Show Detail'), ), ), ) ], ), ), decoration: BoxDecoration( color: Colors.red, borderRadius:isShowAddressDetail? BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80)), bottomLeft: Radius.circular(ScreenUtil().setSp(80)), bottomRight: Radius.circular(ScreenUtil().setSp(80)) ): BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .3), offset: Offset(-0.0, -0.0), blurRadius: 10.0, spreadRadius: 10.0) ]), ), ), new Positioned( bottom: 0, child: AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: marketHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new GestureDetector( child: new Container( child: new Text('MARKET'), )), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ) ], ), )) ], ), ), ); } } ``` 下面是在调试时候的截图: ![图片说明](https://img-ask.csdn.net/upload/201908/01/1564626484_908639.png) ![图片说明](https://img-ask.csdn.net/upload/201908/01/1564626499_930103.png) 下面是打包安装到手机上的图片: ![图片说明](https://img-ask.csdn.net/upload/201908/01/1564626535_640015.jpg) 如果有解决方案,希望可以帮助一下

flutter的demo跑不起来

![图片说明](https://img-ask.csdn.net/upload/201902/01/1549015563_655607.png) flutter_android里的android文件夹是可以通过android studio编译通过的,但是直接运行flutter_android就报以下错误 ![图片说明](https://img-ask.csdn.net/upload/201902/01/1549015797_773062.png) 尝试过在android文件夹所对应的项目中增加 ``` // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/jcenter' } // maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } ``` 在flutter里的flutter.gradler中也增加上面的代码片段。但是也是报上文的错误。 ![图片说明](https://img-ask.csdn.net/upload/201902/01/1549016080_832953.png)

flutter Navigator路由跳转和返回,组件会重复build

https://github.com/flutter/flutter/issues/11655 为什么页面1, push到页面2,页面1会触发build?,然后回来的时候又build了一次 这样的话,我一个listView滚了很多了,结果点到详情页又得重新滚,这到底是bug还是故意为之的

flutter中如何设计成如下的UI布局

![UI布局](https://img-ask.csdn.net/upload/202004/17/1587094453_403660.jpg) flutter中如何实现如图所示的UI设计

Go后端Flutter / Dart前端中的发布请求问题

<div class="post-text" itemprop="text"> <p>I am new to Flutter/Dart, Go and mobile development in general. I am currently coding a login authentication page in flutter that connects to a backend written in go. To check if everything worked I wanted to print out the cookie that my backend sends back in the console. Unfortunately I am getting errors not sure what to do. </p> <p><strong>EDIT: I have been able to read the cookie, should I save the cookie in this format "session=UUID" or just the "UUID"? I want to send this cookie back in the header for future get requests. My Go code will check for the cookie name "session",but I'm not sure if sending it back in that format is correct.</strong> </p> <p><strong>Flutter code (I read on another stackoverflow post to use 10.0.2.2 as localhost when using an android emulator):</strong></p> <p><strong>EDIT: After playing around with the code I was able to read the cookie in the header but it has the name as well not just the UUID.</strong></p> <pre><code>import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; import 'dart:convert'; class Login extends StatefulWidget { @override State&lt;StatefulWidget&gt; createState(){ return new LoginState(); } } class LoginState extends State &lt;Login&gt; { final formKey = GlobalKey&lt;FormState&gt;(); String _email, _password; String cookie; void loginApi(){ var form = formKey.currentState; var url = "http://10.0.2.2:8080"; if (form.validate()) { form.save(); var body = { "Email":_email, "Pass":_password}; http.post(url,body:json.encode(body)).then((response){ print(response.headers['set-cookie']); }); } } @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text("Login"), backgroundColor: Colors.white, ), body: new Container( alignment: Alignment.center, child: Form( key: formKey, child: Column( children: &lt;Widget&gt;[ TextFormField( autocorrect: false, decoration: InputDecoration( labelText: "Email:", ), validator: (str) =&gt; !str.contains('@') ? "Not a Valid Email!" : null, onSaved: (str) =&gt; _email = str, ), TextFormField( autocorrect: false, decoration: InputDecoration( labelText: "Password:", ), validator: (str) =&gt; str.length &lt;= 7 ? "Not a Valid Password!" : null, onSaved: (str) =&gt; _password = str, obscureText: false, ), RaisedButton( child: Text("Submit"), onPressed:loginApi, ), ], ) ), ), ); } } </code></pre> <p><strong>Golang code (EDIT: Inserted a missing curly bracket after the panic error and deleted the curly bracket at the end of the code):</strong></p> <pre><code>package main import ( "encoding/json" "html/template" "net/http" uuid "github.com/satori/go.uuid" "golang.org/x/crypto/bcrypt" ) type user struct { UserName string //Same as email Password []byte } type logindata struct { Email string Pass string } var tpl *template.Template var dbUsers = map[string]user{} var dbSess = map[string]string{} func init() { bs, _ := bcrypt.GenerateFromPassword([]byte("password"), bcrypt.MinCost) dbUsers["test@test.com"] = user{"test@test.com", bs} } func main() { http.HandleFunc("/", login) http.Handle("/favicon.ico", http.NotFoundHandler()) //Don't have favicon http.ListenAndServe(":8080", nil) } func login(w http.ResponseWriter, req *http.Request) { var data logindata decoder := json.NewDecoder(req.Body) err_decode := decoder.Decode(&amp;data) if err_decode != nil { panic(err_decode) } u, ok := dbUsers[data.Email] if !ok { http.Error(w, "Username and/or password do not match", http.StatusForbidden) return } err_compare := bcrypt.CompareHashAndPassword(u.Password, []byte(data.Pass)) if err_compare != nil { http.Error(w, "Username and/or password do not match", http.StatusForbidden) return } // create session sID, _ := uuid.NewV4() c := &amp;http.Cookie{ Name: "session", Value: sID.String(), } http.SetCookie(w, c) dbSess[c.Value] = data.Email return } </code></pre> <p><strong>Output from console for flutter code (after I put in username and password and click submit, username is "test@test.com" password is "password"):</strong></p> <pre><code>Performing hot reload... Reloaded 0 of 489 libraries in 544ms. I/flutter ( 3778): session=db3690d6-db6e-4658-8b5b-5f2d3f908a65 </code></pre> <p><strong>I also went to localhost:8080 on my browser expecting to show a blank page but it displayed "page not working" and my terminal outputted the following error I guess because I was accessing it with a browser and I wasn't sending in JSON data, not sure:</strong></p> <pre><code>2018/05/24 23:29:38 http: panic serving [::1]:40010: EOF goroutine 6 [running]: net/http.(*conn).serve.func1(0xc82001a280) /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1 panic(0x76c6c0, 0xc82000a160) /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9 main.login(0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176 net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0) /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e net/http.(*conn).serve(0xc82001a280) /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e created by net/http.(*Server).Serve /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e 2018/05/24 23:29:38 http: panic serving [::1]:40012: EOF goroutine 18 [running]: net/http.(*conn).serve.func1(0xc82011c080) /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1 panic(0x76c6c0, 0xc82000a160) /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9 main.login(0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176 net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000) /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e net/http.(*conn).serve(0xc82011c080) /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e created by net/http.(*Server).Serve /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e 2018/05/24 23:29:43 http: panic serving [::1]:40016: EOF goroutine 7 [running]: net/http.(*conn).serve.func1(0xc82001a380) /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1 panic(0x76c6c0, 0xc82000a160) /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9 main.login(0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176 net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0) /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e net/http.(*conn).serve(0xc82001a380) /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e created by net/http.(*Server).Serve /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e </code></pre> </div>

android studio下运行flutter提示连接不上android设备

在android studio里开发flutter项目,flutter和dart插件都安装了,各种配置环境都配好了,但是运行项目还是提示没有可连接的设备,运行android studio项目就可以运行,但是运行flutter项目就连不上设备 ![图片说明](https://img-ask.csdn.net/upload/201912/18/1576647083_176276.jpg) 输入flutter doctor显示如图 ![图片说明](https://img-ask.csdn.net/upload/201912/20/1576809036_857979.jpg)

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

汽车行驶工况构建2019 D题.zip

1. 标记0与0之间的片段位置 2.标记所之间的毛刺数的位置 3.去掉毛刺数据 速度 并生成 新的数组 4.标记时间段 5. 0与0之间 如果有不连续的时间片段 置零 先找到时间间隔 再看间隔时间对应

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 1、原价 115 元,限时特价仅需 49 元!<br> 2、购课后添加学习助手(微信号:csdnxy68),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdnxy68</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

IE主页被篡改修复

IE主页修复。IE主页被篡改修复。一键修复IE主页

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

土豆SDK(Java版)-非官方

由于土豆SDK一直建设中,最近几天抽空写了一套java的SDK。包含了现有的所有请求协议。本套SDK中仅提供了oAuth的方式(引用oAuth.net的java版示例),并没有在框架中实现,涉及到登录

Java8零基础入门视频教程

这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!

【数据结构与算法综合实验】欢乐连连看(C++ & MFC)案例

这是武汉理工大学计算机学院数据结构与算法综合实验课程的第三次项目:欢乐连连看(C++ & MFC)迭代开发代码。运行环境:VS2017。已经实现功能:开始游戏、消子、判断胜负、提示、重排、计时、帮助。

数学建模竞赛D题“汽车行驶工况构建

第十六届“华为杯”数学建模竞赛D题“汽车行驶工况构建”论文。论文获得比赛国家二等奖,论文为原创,仅供参考。 关键词:数据处理;降维;聚类。

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

Android音视频开发全套

Android平台音视频开发全套,涉及:FFmpeg软解码解码、Mediacodec硬解码编码、Openssl音频播放、OpenGL ES视频渲染、RTMP推流等核心重要知识点。

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

web网页制作期末大作业

分享思维,改变世界. web网页制作,期末大作业. 所用技术:html css javascript 分享所学所得

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/27513,点击右下方课程资料、代码、课件等打包下载

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

C++语言基础视频教程

C++语言基础视频培训课程:本课与主讲者在大学开出的程序设计课程直接对接,准确把握知识点,注重教学视频与实践体系的结合,帮助初学者有效学习。本教程详细介绍C++语言中的封装、数据隐藏、继承、多态的实现等入门知识;主要包括类的声明、对象定义、构造函数和析构函数、运算符重载、继承和派生、多态性实现等。 课程需要有C语言程序设计的基础(可以利用本人开出的《C语言与程序设计》系列课学习)。学习者能够通过实践的方式,学会利用C++语言解决问题,具备进一步学习利用C++开发应用程序的基础。

零基础学C#编程—C#从小白到大咖

本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!

编程实现学生基本信息管理程序

编程实现学生基本信息管理程序。学生基本信息包括:学号、姓名、性别、年龄、班级、学院、专业等。具体实现的管理功能如下: (1) 输入并显示多个学生的基本信息; (2) 可根据需要实现学生信息的添加; (

android 漂亮的UI界面 完整的界面设计

声明:这也是我学习时在网上下载的,鉴于分享精神,并且觉得很不错才上传上来的。。。。。 android 漂亮的UI界面 完整的界面设计 这是一个完整的UI设计,但是没写动作,这是一个公司程序员的公司任务

Anaconda详细安装及使用教程(带图文)

Anacond的介绍 Anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。 因为包含了大量的科学包,Anaconda 的下载文件比较大(约 531 MB),如果只需要某些包,或者需要节省带宽或存储空间,也可以使用Miniconda这个较小的发行版(仅包含conda和 Python)。 Conda是一个开源的包、环境管理器,可以用于...

DirectX修复工具V4.0增强版

DirectX修复工具(DirectX Repair)是一款系统级工具软件,简便易用。本程序为绿色版,无需安装,可直接运行。 本程序的主要功能是检测当前系统的DirectX状态,如果发现异常则进行修复

相关热词 c# 按行txt c#怎么扫条形码 c#打包html c# 实现刷新数据 c# 两个自定义控件重叠 c#浮点类型计算 c#.net 中文乱码 c# 时间排序 c# 必备书籍 c#异步网络通信
立即提问