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.
I am getting error “cmdline-tools component is missing” after installing Flutter and Android Studio… I added the Android SDK. How can I solve them?
The solution for me was opening Android Studio and going to SDK Manager, switch to the SDK Tools tab and check Android SDK Command-line Tools (latest). or
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.
Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine
In Windows if your Android Studio install by default, you can use this command after this command, flutter can found android studio, but the plugin can’t… In Linux (Ubuntu) Note: for those who are facing the problem in Ubuntu and Android Studio is installed with snap: Note: for those who are facing the problem in Ubuntu […]
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)