flutter 安裝問(wèn)題匯總 —1

問(wèn)題 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


問(wèn)題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


依次執(zhí)行:

? brew link ?pkg-config ?

? 。。。。?

在執(zhí)行 剩下的命令:

?brew install --HEAD usbmuxd

? brew unlink usbmuxd

? brew link usbmuxd

? brew install --HEAD libimobiledevice

? brew install ideviceinstaller


運(yùn)行 ?flutter doctor ??

結(jié)果:

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)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容