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

你可能感兴趣的:(flutter问题及解决方案)