Reply to Flutter error: "CocoaPods not installed or not in valid state." For me this was resolved by opening the Android studio from terminal open /Applications/Android\ Studio.app App & System Services Core OS Feb ’22