flutter 安装过程参考官网还有慕课的课程、
flutter doctor 全对号,没有问题;
flutter run 卡住了,提示 this si taking an unexpectedly long time !
这种问题 那位大神能帮我 解决一下? 感激不尽
1
1KN6sAqR0a57no6s 2019-04-11 16:23:41 +08:00 via Android
大概率是科学上网的问题。
|
2
blurh11E27 OP @YuxiangLuo 换了两种扶墙姿势
|
3
1KN6sAqR0a57no6s 2019-04-11 16:41:15 +08:00 via Android
@blurh11E27 https://www.cnblogs.com/geekshine/p/9458122.html 大半年前的一点记录,有点混乱,希望对你有点帮助。
|
4
POPOEVER 2019-04-11 16:45:19 +08:00
可能是 gradle 版本问题,试试 update android sdk
|
5
BCy66drFCvk1Ou87 2019-04-11 16:48:31 +08:00
https://github.com/flutter/flutter/issues/27310
" Guys, It worked for me: Created a fresh project Temp files were causing the trouble with android licenses (a restart did the trick) Java version was also causing trouble so changed the build.gradle file // Added by me for solving java version error compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } Hope this helps! " |