【问题标题】:Flutter macOS high Sierra errorFlutter macOS 高 Sierra 错误
【发布时间】:2018-04-09 13:22:31
【问题描述】:

我按照 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

【问题讨论】:

  • Android 需要安装 Android Studio 和 iOS XCode
  • 你真的尝试过按照颤振医生所说的去做吗?要接受android许可,安装六个并初始化cocoapods?
  • 大约一个月前我确实安装了完整的 xCode 和完整的 Android Studio。问题是颤振文件夹在下载文件夹中。我更正了路径,现在正在处理 1 个警告。无法安装六个。
  • user-MBP:~ user$ easy_install -U 六 正在搜索六 正在阅读 pypi.python.org/simple/six 找不到“六”的索引页(可能拼写错误?) 扫描所有包的索引(这可能需要一会儿)阅读pypi.python.org/simple No local packages or working download links found for 6 error: Could not find proper distribution for Requirement.parse('six')
  • 全新安装 macOS high Sierra 后,一切都变得完美。我按照 macOS 安装中的步骤和它现在的工作。

标签: configuration flutter macos-high-sierra


【解决方案1】:

要修复 android SDK 许可错误,请在终端上输入

flutter doctor --android-licenses 

然后

pip install six

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

flutter upgrade 

【讨论】:

  • 我尝试了升级,但没有成功。有什么新鲜想法吗?
  • 我有另一台 MacBook,也遇到了类似的问题。干净安装和逐步帮助我。 flutter.io/setup-macos
【解决方案2】:

如果有人仍然对 pip Six 有问题

卸载python2

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

【讨论】:

    【解决方案3】:

    您可以使用

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

    接下来你跑

    pip install six
    

    【讨论】:

      猜你喜欢
      • 2017-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多