Alpine image apk update fetch hangs At apk –no-cache upgrade or RUN apk update no respone
Try to login docker container run command line:
wget http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz Get status is “stalled”.
PS:Error is different “no respone” or “hang”
Way one: Answer:
apk fetch hangs
https://github.com/gliderlabs/docker-alpine/issues/307
10G mtu or switch mtu
So
Into directory
docker build --network host . Way two: Answer:
https://mlohr.com/docker-mtu/
https://medium.com/@sylwit/how-we-spent-a-full-day-figuring-out-a-mtu-issue-with-docker-4d81fdfe2caf
nano /etc/docker/daemon.json { "mtu": 1450 }
https://www.chongdongshequ.com/article/1544005544333.html
https://book.flutterchina.club/
https://www.appcoda.com.tw/flutter-introduction/
Dart 內建支援 Streams 及 Future。我的 RxJava 經驗有助我了解 Streams,而在 ES6 Promise 方面的經驗則有助我理解 Futures 和 Async/Await 的概念
https://github.com/DavBfr/dart_pdf/tree/master/printing/example/lib
Problem is here.
image: const fw.NetworkImage('https://www.gravatar.com/avatar/00000000000000000000000000000000?d=mp&s=200'), Change to
import 'package:flutter/painting.dart' as fp; find this and change
image: new fp.AssetImage("images/a123.png"), OK~
Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
https://stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google
1、add google-service A:add classpath ‘com.google.gms:google-services:4.2.0’ %app%/android/build.gradle buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' } } B:add apply plugin: ‘com.google.gms.google-services’ %app%/android/app/build.gradle apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply plugin: 'com.google.gms.google-services' 2、 get google-service.json https://firebase.google.com/docs/flutter/setup
https://developers.google.com/android/guides/client-auth
create app A:create test project go https://console.firebase.google.com/
B:create application
Where get app name Open %app%/android/app/build.
https://pub.dartlang.org/packages/http#-changelog-tab-
https://stackoverflow.com/questions/48477625/how-to-use-google-api-in-flutter/48485898#48485898
The library ‘package:http/http.dart’ doesn’t export a member with the shown name ‘IOClient’
Answer:
import 'package:http/io_client.dart';