flutter问题及解决方案

最近google开发者大会,蹭热点关注了下flutter,看之前觉得离自己很遥远的东东,简单了解后却惊为天人!
不依赖原生框架,独立的渲染引擎,Android ios Fuchsia三个系统无缝衔接,还只是bate版本。这… 移动端真的要变天了吗?
怀着对google顶礼膜拜的激动心情,赶忙按照官方指引学习了一番,途中所遇坎坷一一记录,方便他人,鞭策自己。

1. Waiting for another flutter command to release the startup lock…

解决方案:

going to flutter dir and `rm ./bin/cache/lockfile`

2. fatal: unable to access ‘https://flutter.googlesource.com/gallery-assets/’: Failed to connect to flutter.googlesource.com port 443: Operation timed out

原因:googlesource被墙,访问不到
解决方案:设置代理(如果手里没有代理就想其他办法吧,可以尝试设置镜像或者下载到本地路径)

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
    原文作者:maodq
    原文地址: https://www.jianshu.com/p/9637e1a18a2d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞