How to run CocoaPods on Apple Silicon (M1)

2022 Nov Update If you can use Homebrew to manage cocoapods. 2021 Solution Additional Information #1 For anyone seeing the arch: posix_spawnp: gem: Bad CPU type in executable error, you must first install Rosetta. Thanks, @Jack Dewhurst #2 If you run pod commands pretty often, setting up an alias in .zshrc or .bash_profile might be handy. Thanks, @theMoonlitKnight for the suggestion.

Flutter doctor error – Android sdkmanager tool not found. Windows

Just like you, I have Android Studio installed, the key is to install Android SDK Command-line Tools, steps being: At that point, you will be prompted to accept the SDK license and the command line tools will be installed. Your license issue should now be resolved. FYI, the command line tools will add a new folder cmdline-tools inside […]

Flutter doctor –android-licenses gives a java error

Installing Android SDK Command-line tools from Android SDK Manager did the job for me. Alternative to step #1: WINDOWS: File > Settings (Ctrl+Alt+S) / MAC : Android Studio > Preferences This fix works for Windows, Linux and Mac OS X. If you are facing a problem in spite of the above steps, you can try upgrading your system to JDK 8. Official documentation of upgrading to JDK 8 is available here.

Waiting for another flutter command to release the startup lock

In my case, the following command in Terminal helped (as suggested by Günter Zöchbauer’s comment): On Windows, run the following in a Command Prompt or PowerShell window (as suggested by upupming’s comment): (You can read about taskkill flags in Windows here)

Flutter command not found

You need to correctly set up your Flutter path. From macOS install – Update your path: Instead of nano, you can use any text editor to edit file ~/.bash_profile. For zsh: For example : if flutter in your machine has been installed under [your_username]/Developer/flutter

How to find the path of Flutter SDK?

If you have the flutter SDK installed. Run: The first line will show the install path.. (if you don’t have it installed go to the documentation)