Visit flutter official site 訪問Flutter官方網(wǎng)站
Choose system you are using. You need a macbook if you want to test flutter on ios.
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:
我運(yùn)行了兩次這個命令雇盖。第一次發(fā)現(xiàn)存在沒有安裝Flutter插件舊的AS版本忿等,我將其移除。再次運(yùn)行獲得到以下信息:
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 -0400
Engine ? 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
Problems when developing the first app:
安裝創(chuàng)建第一個Flutter App的官方文檔創(chuàng)建引用
在增加新的第三方庫時遇到了下面的問題:
# flutter --no-color packages get
Blocked at the state Running "flutter packages get" for a long time and never succeed.
一直卡在flutter packages get很久崔挖,并且不成功这弧!
被墻了娃闲,你懂得。官方解決方案參考Using-Flutter-in-China