Flutter Android Studio不识别Cocoapod 总结

Flutter Android Studio不识别Cocoapod 总结,flutter,cocoapods,Flutter,Cocoapods,我的Android Studio无法识别cocoapods,即使它已经安装 问题 当我为iPhone 11设备运行main.dart时,会显示以下错误消息: Launching lib/main.dart on iPhone 11 in debug mode... Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform si

我的Android Studio无法识别cocoapods,即使它已经安装

问题 当我为iPhone 11设备运行main.dart时,会显示以下错误消息:

Launching lib/main.dart on iPhone 11 in debug mode...
Warning: CocoaPods not installed. Skipping pod install.
  CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
  Without CocoaPods, plugins will not work on iOS or macOS.
  For more info, see https://flutter.dev/platform-plugins
To install:
  sudo gem install cocoapods

CocoaPods not installed or not in valid state.
Error launching application on iPhone 11.
当我选择Android Pixel 3a作为模拟器时,它可以成功运行

环境 站台 macOS Catalina v10.15.6

颤振版本 $flatter-版本 颤振1.20.3•通道稳定•https://github.com/flutter/flutter.git 框架•11天前修订216dee60c0•2020-09-01 12:24:47-0700 发动机•版本d1bc06f032 工具•省道2.9.2 颤振医生 $flatter医生 医生摘要要查看所有详细信息,请运行颤振医生-v: [✓] 颤振通道稳定,1.20.3,在Mac OS X 10.15.6 19G2021上,本地化ja JP [✓] Android工具链-为Android设备开发Android SDK版本29.0.2 [✓] Xcode-为iOS和macOS开发Xcode 11.6 [✓] Android Studio 4.0版 [✓] VS代码版本1.48.2 [✓] 已连接的设备1可用 •未发现任何问题! 宝石名单椰子荚 $gem列表椰子荚 ***本地宝石*** 椰子荚1.8.0 可可豆核心1.9.3、1.8.0、1.7.5 椰子荚解集成1.0.4 cocoapods downloader 1.4.0 cocoapods插件1.0.0 cocoapods搜索1.0.0 cocoapods统计数据1.1.0 椰荚树干1.5.0 椰子荚尝试1.2.0 pubspec.yml 姓名:金罗 描述:一个新的颤振应用。 发布到: 版本:1.0.0+1 环境:
sdk:>=2.7.0尝试从终端open/Applications/Android\Studio.app打开Android Studio


这似乎修复了导致CocoaPods not installed错误的路径问题。

GitHub上存在关于该错误的开放问题:。您是否尝试运行pod安装程序?更新可能会有所帮助?当前CocoaPods版本高于1.9。请尝试检查此问题:开发人员提出了一些解决方案,他们遇到了与此相同的问题你的