Flutter macOS high Sierra错误

时间:2018-04-09 13:22:32

标签: configuration flutter macos-high-sierra

我按照Flutter网站上的说明操作。 Flutter Doctor警告如下。我的问题我不知道如何克服这个错误,警告等。

请帮忙吗?

/Users/niyazitoros/development/flutter/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.3, on Mac OS X 10.13.4 17E199, locale tr-TR)
[!] 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.3)
    ✗ Missing Xcode dependency: Python module "six".
      Install via 'pip install six' or 'sudo easy_install six'.
    ✗ CocoaPods installed but not initialized.
        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
        For more info, see https://flutter.io/platform-plugins
      To initialize CocoaPods, run:
        pod setup
      once to finalize CocoaPods' installation.
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.1)
[!] Connected devices
    ! No devices available

! Doctor found issues in 3 categories.
Process finished with exit code 0

在纠正颤动路径后,医生给我这个警告。

/Users/niyazitoros/development/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.3, on Mac OS X 10.13.4 17E199, locale tr-TR)
[!] 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.3)
    ✗ Missing Xcode dependency: Python module "six".
      Install via 'pip install six' or 'sudo easy_install six'.
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.1)
[!] Connected devices
    ! No devices available

! Doctor found issues in 3 categories.
Process finished with exit code 0

3 个答案:

答案 0 :(得分:3)

修复Android SDK许可证错误,在终端上输入

flutter doctor --android-licenses 

然后

pip install six

如果错误仍然存​​在,则运行

flutter upgrade 

答案 1 :(得分:0)

如果有任何人仍然遇到pip six enter image description here

的问题

卸载python2

brew uninstall python@2 这个对我有用。

答案 2 :(得分:0)

您可以使用

修复android SDK许可证
flutter doctor --android-licenses 

接下来您要运行

pip install six