当前位置:网站首页>win10搭建flutter环境踩坑日记
win10搭建flutter环境踩坑日记
2022-07-25 22:08:00 【听*海】
最近在win10上搭建了下flutter环境(当然,我是安卓),按照Flutter中文文档一步一步来的,踩了很多坑,不过最终还是运行出来了。在此把一些坑浅记录一下
文档链接:Flutter中文文档链接
最终运行默认的起步应用效果如下

按照文档步骤来,获取 Flutter SDK,更新 path 环境变量,没有什么问题。
运行 flutter doctor。开始有问题了,首先有一个cmdline-tools,许可证需要接受等等,如下。

大概是在Android Studio中安装这个cmdline-tools,然后许可证的话运行命令接受就可以,具体在这篇文章:flutter环境报错…
总之,我现在运行flutter doctor时是如下情况,Visual Studio啥的也没有,暂时没有影响。

已有Android Studio,之后去安装了Flutter插件,新建项目,运行,出了很多问题。。
首先一直是卡在Running Gradle task ‘assembleDebug’…,然后去看了网上的博客,又是去改build.gradle中的代理,又是改flutter.gradle,还尝试翻墙,最终总算成功的过去了,然后又蹦出了其他错误,不过没有截图保留。意思是需要JDK11以上,下呗。还需要更新Android Studio,去检查更新,发现好像只能卸载重装啊!
在官网下新版Android Studio的时候,也很有意思啊,下载出来个如下玩意,这怎么打开?我还以为我下错了。最终把后缀15-windows改为exe就可以了。。也是醉了。

运行exe文件,安装(其中会先将老版本卸载掉),OK。
打开AS,Run!又来新问题了,意思是没有Android Platform 31

那我改成已有的28行吗,还是不行,就得31,那只能去下了。打开SDK Manager,Install!

之后就运行出来了,再贴一下!

虽然过程比较坎坷,不过最终还是运行出来了嘛
边栏推荐
- Redisv6.0为何引入多线程?
- The reisson distributed lock renewal failed due to network reasons, resulting in the automatic release of the lock when the business is still executing but the lock is not renewed.
- Summary of function test points of wechat sending circle of friends on mobile terminal
- C language: random generated number + selective sorting
- Imitation Tiktok homepage interface
- jsp九大内置对象
- Why does redisv6.0 introduce multithreading?
- Wechat applet application development competition works comprehensive development record - Jinlu cultural tourism (cloud development - Overview)
- 6-18 vulnerability exploitation - backdoor connection
- Solutions to the failure of win key in ikbc keyboard
猜你喜欢
![[hand tear STL] BitSet (bitmap), bloom filter](/img/bc/a6e3c2ccce478460a2742852eee9cf.png)
[hand tear STL] BitSet (bitmap), bloom filter

突破性思维在测试工作中的应用

Flex layout

【饭谈】如何设计好一款测试平台?

The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?

JMeter websocket interface test

Jmeter---设置代理录制请求

Special class design

Solutions to the failure of win key in ikbc keyboard

The technical aspects of ByteDance are all over, but the result is still brushed. Ask HR why...
随机推荐
卸载npm和安装npm_使用`npm uninstall`卸载npm软件包「建议收藏」
How is it most convenient to open an account for stock speculation? Is it safe for online account managers to open an account
TFrecord写入与读取
synchronized与volatile
redis主从架构锁失效问题(主从)
GPON introduction and Huawei OLT gateway registration and configuration process
Jmeter---设置代理录制请求
What should I do if I encounter the problem of verification code during automatic testing?
YUV420 YUV420sp 图像格式「建议收藏」
4day
ZigBee development board (nxpzigbee Development)
kubernetes之VictoriaMetrics单节点
C语言:随机生成数+选择排序
C语言:随机生成数+冒泡排序
Don't vote, software testing posts are saturated
How to configure and use rocksdb in the flinksql environment
2022 the latest software tests eight part essay. Whether you can offer depends on how you recite it
聚名十年,说出你的故事,百万豪礼等你拿
Redis是什么?简述它的优缺点
五种分配方式是否会产生内部碎片、外部碎片