美文网首页flutter的调试
android studio 显示未安装CocoaPods

android studio 显示未安装CocoaPods

作者: 百事星空 | 来源:发表于2022-04-21 16:27 被阅读0次

    最近升级了Mac系统(12.3.1)、Xcode(13.3.1)和android studio(version 2020.3)后发现问题

    可以确定Mac上已经有了CocoaPods,XCode运行没有问题,但是直接点击android studio上的运行按钮会报如下错误:
    Warning: CocoaPods is installed but broken. Skipping pod install.
    ... ...
    Exception: CocoaPods not installed or not in valid state.

    • 这应该是android studio软件的问题,这个时候我们可以使用它自带的terminal 运行flutter run,发现可以运行;
    • 使用终端命令打开android studio: open /Applications/Android\ Studio.app,然后再使用android studio上自带的运行按钮,发现可以运行了;
    • 再次关闭android studio,重新手动打开android studio,再次点击运行,发现可以了;

    相关文章

      网友评论

        本文标题:android studio 显示未安装CocoaPods

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