美文网首页Flutter
flutter 安装问题汇总 —1

flutter 安装问题汇总 —1

作者: 介和 | 来源:发表于2019-03-22 16:41 被阅读356次

    问题 1:

    Doctor summary (to see all details, run flutter doctor -v):

    [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)

    [!] Android toolchain - develop for Android devices (Android SDK version 28.0.0-rc2)

        Flutter requires Android SDK 28 and the Android BuildTools 28.0.3

          To update using sdkmanager, run:

            /Users/yanjing/Library/Android/sdk/tools/bin/sdkmanager "platforms;android-28" "build-tools;28.0.3"

          or visit https://flutter.io/setup/#android-setup for detailed instructions.

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

    [!] iOS toolchain - develop for iOS devices (Xcode 10.1)

        libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:

            brew update

            brew install --HEAD usbmuxd

            brew link usbmuxd

            brew install --HEAD libimobiledevice

            brew install ideviceinstaller

        ios-deploy not installed. To install:

            brew install ios-deploy

    [!] Android Studio (version 3.1)

        Flutter plugin not installed; this adds Flutter specific functionality.

        Dart plugin not installed; this adds Dart specific functionality.

    [!] VS Code (version 1.30.1)

        Flutter extension not installed; install from

          https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

    [✓] Connected device (1 available)

    解决 :

    To update with Brew, run:

      brew update

      brew uninstall --ignore-dependencies libimobiledevice

      brew uninstall --ignore-dependencies usbmuxd

      brew install --HEAD usbmuxd

      brew unlink usbmuxd

      brew link usbmuxd

      brew install --HEAD libimobiledevice

      brew install ideviceinstaller

    问题2

    安装 ,brew install --HEAD usbmuxd 

    ./configure: line 16735: syntax error near unexpected token `libplist,'

    ./configure: line 16735: `PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)'

    在 https://github.com/flutter/flutter/issues/24716 中找到解决方法:

    I solved it running

    brew doctor

    And resolving this warning:

    Warning: You have unlinked kegs in your Cellar

    Warning: You have unlinked kegs in your Cellar

    Leaving kegs unlinked can lead to build-trouble and cause brews that depend on

    those kegs to fail to run properly once built. Run `brew link` on these:

      pkg-config

      libtool

      libksba

      python@2

      libyaml

      libgpg-error

    依次执行:

      brew link  pkg-config  

      。。。。 

    在执行 剩下的命令:

     brew install --HEAD usbmuxd

      brew unlink usbmuxd

      brew link usbmuxd

      brew install --HEAD libimobiledevice

      brew install ideviceinstaller

    运行  flutter doctor   

    结果:

    Doctor summary (to see all details, run flutter doctor -v):

    [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)

    [!] Android toolchain - develop for Android devices (Android SDK version 28.0.0-rc2)

        ✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3

          To update using sdkmanager, run:

            /Users/yanjing/Library/Android/sdk/tools/bin/sdkmanager "platforms;android-28" "build-tools;28.0.3"

          or visit https://flutter.io/setup/#android-setup for detailed instructions.

        ✗ Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

    [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)

    [!] Android Studio (version 3.1)

        ✗ Flutter plugin not installed; this adds Flutter specific functionality.

        ✗ Dart plugin not installed; this adds Dart specific functionality.

    [✓] VS Code (version 1.30.1)

    [✓] Connected device (4 available)

    相关文章

      网友评论

        本文标题:flutter 安装问题汇总 —1

        本文链接:https://www.haomeiwen.com/subject/ppsrvqtx.html