- Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:1026/n7mjQdqNp7w=/ws Exited (sigterm)
在iOS真機(jī)上使用報(bào)的這個(gè)錯(cuò)誤,通過重新連接設(shè)備,重啟Xcode編譯器解決了
Comments are not permitted in JSON.
刪除json文件后的注釋就OK了硫朦。-
A dependency may only have one source。
屏幕快照 2019-08-29 上午10.31.40.png
4.flutter: DioError [DioErrorType.DEFAULT]: HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:354))
https證書問題
- flutter: Another exception was thrown: A GlobalKey was used multiple times inside one widget's child list.
關(guān)閉重新運(yùn)行一下就好了....
6.TabController在創(chuàng)建時(shí)vsync使用this一直報(bào)錯(cuò)应狱,需要添加with SingleTickerProviderStateMixin
7.解決iOS真機(jī)運(yùn)行 Cloning into '/var/folders/z3/jxqy5rh52xxgs0j_7l6lzfl00000gn/T/d20200509-21922-5mfy8x'...
fatal: unable to access 'https://github.com/webmproject/libwebp.git/': Failed to connect to 127.0.0.1
port 53783: Connection refused
解決方法:1、pod repo 查看 cocoapods 在本機(jī)的PATH(可能存在多個(gè)分支)
2.前往文件夾 (??G) -> ~/.cocoapods/repos/master/Specs/1/9/2/libwebp
3.將json中source下git地址更改為https://github.com/webmproject/libwebp.git
8.# Engine run configuration was invalid
flutter channel master
flutter upgrade
9.使用FutureBuilder是snapshot的data的數(shù)據(jù)一直是空值
future 方法里一定要進(jìn)行return。return空字符串也行
10.Flutter ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.
在使用shared_preferences初始化的時(shí)候
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
}
11.Flutter 使用Dio請(qǐng)求返回?cái)?shù)據(jù)不是Json字符串苛坚,而是Json對(duì)象
responseType: ResponseType.plain,
12.[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/wanggang/Desktop/hushishangmen/hushishangmen/ios/Pods/BMKLocationKit/framework/BMKLocationKit.framework)
引入百度地圖妓羊,pod install 時(shí)報(bào)錯(cuò)
解決:
第一種:刪除ios項(xiàng)目中podfile中的 use_frameworks!
或者第二種:BMKLocationKit胯究,這個(gè)百度地圖里新增如下代碼