flutter doctor检测环境,出现CocoaPods installed but not working

这篇具有很好参考价值的文章主要介绍了flutter doctor检测环境,出现CocoaPods installed but not working。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1. 安装flutter, 地址: 安装和环境配置 - Flutter 中文文档 - Flutter 中文开发者网站 - Flutter
2. 安装成功后,通过flutter doctor检测环境。以mac为例,出现了CocoaPods installed but not working 错误提示时,以下为解决方案:

2.1   rvm install ruby-3.1.0, 可能出现依赖错误问题,使用如何指令即可:

        flutter doctor检测环境,出现CocoaPods installed but not working,flutter,cocoapods,xcode

        rvm reinstall ruby-3.1.0 --with-openssl-dir=/usr/local/opt/openssl;

        可以安装ruby-3.2.0,不过遇到了activesupport=7.1.1 版本不能卸载;

2.2   gem list查询安装的activesupport版本号,当版本号大于7.0.8, 会遇到如下错误:

       flutter doctor检测环境,出现CocoaPods installed but not working,flutter,cocoapods,xcode

2.3   sudo gem uninstall activesupport;

2.4   sudo gem install activesupport -v 7.0.8

2.5 gem list | grep activesupport  查看activesupport版本信息   flutter doctor检测环境,出现CocoaPods installed but not working,flutter,cocoapods,xcode

3.  flutter doctor 检测时出现如下表示正常:

flutter doctor检测环境,出现CocoaPods installed but not working,flutter,cocoapods,xcode文章来源地址https://www.toymoban.com/news/detail-720328.html

到了这里,关于flutter doctor检测环境,出现CocoaPods installed but not working的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【Flutter】flutter doctor network resources 报错,解决国内开发环境问题

    flutter doctor network resources 主要检查flutter开发工具运行过程中依赖的网络资源来源站是否可以正常访问,但国内通常都是无法访问的 下面介绍windows下的设置方法,如果你熟练使用mac或linux,通常会更自由,环境变量不会出现不识别的情况,参考本文档依旧可以完成配置 maven.

    2024年02月02日
    浏览(29)
  • 【flutter】flutter doctor -v 查看flutter配置环境问题:X cmdline-tools component is missing 以及 X Android license

    一、遇到报错: 二、异常原因: 2.1 问题1:cmdline-tools component is missing 运行flutter doctor 出现了错误,这是因为没安装cmdline-tools工具。 2.2 问题2:Android license status unknown. flutter doctor 如果提示Android license status unknown.表明没有安装android 证书。 执行命令: flutter doctor --android-lic

    2024年02月16日
    浏览(42)
  • flutter出现的错误:Visual Studio not installed; this is necessary for Windows development

    当你在Windows上使用Flutter开发时,如果出现\\\"Visual Studio not installed; this is necessary for Windows development\\\"的错误,这意味着你需要安装Visual Studio,以便进行Windows平台的开发。 Flutter在Windows平台上需要使用Visual Studio来构建和运行一些特定的功能和库。为了解决这个问题,你可以按照

    2024年02月07日
    浏览(32)
  • Flutter执行flutter doctor报错HTTP Host Availability

    将文件 flutter/packages/flutter_tools/lib/src/http_host_validator.dart 中的 https://maven.google.com/ 改为 https://dl.google.com/dl/android/maven2/ 。 删除 flutter/bin/cache 。 执行 flutter doctor 。

    2024年01月22日
    浏览(31)
  • 【2023.4.19】重新安装 Cocoapods 解决 pod install 卡住或者 cocoapods 依赖无法更新等问题

    做ios或flutter开发时,经常会遇到添加依赖过后pod install卡住,或者其他的一些奇奇怪怪的问题,如果花了很长时间都没有解决的话可以试试重新安装Cocoapods,这在大多数情况下都能有所帮助 1. 打开终端 2. which pod 3. gem list 1. 检查 gem 下载源并下载 2. 删除 Podfile 和 Podfile.lock 3

    2024年02月10日
    浏览(31)
  • 运行flutter doctor命令窗口直接闪退

    在cmd中输入flutter doctor后闪退了。 使用高速摄像机可以看到报错信息。  报错信息的意思是git的文件夹不能删掉,请保留flutter中git文件。

    2024年02月12日
    浏览(29)
  • 解决运行flutter doctor --android-licenses时报错

    配置flutter环境时,会使用flutter doctor命令来检查运行flutter的相关依赖是否配好。能看到还差 Android license status unknown.未解决。 在运行命令  flutter doctor --android-licenses  时报错 has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only r

    2024年02月14日
    浏览(36)
  • flutter doctor --android-licenses报错解决方案

    C:Users32148flutter doctor --android-licenses Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! ����: �������� com.android.sdklib.tool.sdkmanager.SdkManagerCli ʱ���� LinkageError         java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkMan

    2024年02月07日
    浏览(39)
  • MAC flutter doctor --android-licenses 报错解决方案

    报错信息: ! Doctor found issues in 1 category. miqi@bogon my_app % flutter doctor --android-licenses 错误: 加载主类 com.android.sdklib.tool.sdkmanager.SdkManagerCli 时出现 LinkageError java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class f

    2024年01月23日
    浏览(30)
  • iOS pod install失败,提示CocoaPods could not find compatible versions for pod “***“

    1.pod install失败 在执行 pod install 的时候会失败,提示如下: 按提示执行 pod install --repo-update 之后,还是失败,提示: 造成报错的原因有两种: 一、两者的都是由于本地索引库没有更新到最新,找不到对应版本的spec文件。 二、第三方库依赖的系统版本号,高于项目的最低支

    2024年02月09日
    浏览(29)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包