为了账号安全,请及时绑定邮箱和手机立即绑定

Flutter笔记-安装及开发第一Flutter应用

标签:
Android

Choose system you are using. You need a macbook if you want to test flutter on ios.

webp

flutter_install_guide.png

Some problem when installing Flutter 安装过程遇到过的问题

I am an Android engineer, so I have android IDE. After I installed the Flutter and Dart plugin, there is no "New Flutter Project" option in IDE.
I search on the Google. I found this stackoverflow

# flutter upgrade

I run that command twice. At first time, it found two "Android Studio". The lower version has not install the flutter plugin, so I remove it. At second time, I get following message:

我运行了两次这个命令。第一次发现存在没有安装Flutter插件旧的AS版本,我将其移除。再次运行获得到以下信息:

Upgrading Flutter from /Library/Flutter/flutter...
Already up to date.

Upgrading engine...
Already up-to-date.

Flutter 0.9.4 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f37c235c32 (4 weeks ago) • 2018-09-25 17:45:40 -0400Engine • revision 74625aed32
Tools • Dart 2.1.0-dev.5.0.flutter-a2eb050044

Running "flutter packages upgrade" in kiipu...              14.6s

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[] Flutter (Channel beta, v0.9.4, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
     libimobiledevice and ideviceinstaller are not installed. To install, run:
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
     ios-deploy not installed. To install:
        brew install ios-deploy
[] Android Studio (version 3.2)
[!] VS Code (version 1.28.2)
[] Connected devices (1 available)

! Doctor found issues in 3 categories.

You can find the method to resolve the problem(Solution is also provided in above stackoverflow link ):

从信息可以找到可能的解决方案(stackoverflow 也有人提出此解决方案):

! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
# flutter doctor --android-licenses

webp

StackOverFlow

Flutter Github Issue#23086

webp

flutter_github_issue_23086

Problems when developing the first app:

安装创建第一个Flutter App的官方文档创建引用

在增加新的第三方库时遇到了下面的问题:

# flutter --no-color packages get



作者:Jepack
链接:https://www.jianshu.com/p/f104644fa04a


点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消