Unknown host CPU architecture: arm64 , Android NDK SiliconM1 Apple MacBook Pro

solved this issue. Finder -> Go To Folder(/Users/mac/Library/Android/sdk/ndk/21.4.7075529) -> now edit ndk-build open it in text editor and paste below code script and re-run your project. from #!/bin/sh DIR=”$(cd “$(dirname “$0″)” && pwd)” $DIR/build/ndk-build “$@” to #!/bin/sh DIR=”$(cd “$(dirname “$0″)” && pwd)” arch -x86_64 /bin/bash $DIR/build/ndk-build “$@” Reference Link

Error about Android Studio on Macbook M1: An error occurred while trying to compute required packages

This is what solved it for me on my M1. Go to Android Studio Preview and download the latest Canary build for Apple chip (Chipmunk). Don’t worry this is just to get through the initial setup. Unpack it, run it, let it install all the SDK components, accept licenses, etc as usual. Once it’s done, … Read more

Emulator appearing offline on M1 Mac after the last update of arm64-v8a

Replace the avd system images you have downloaded with the r02 images. r03 is broken for me but reverting to r02 saved the day! Update: It appears r03, r04, and r05 all don’t work on m1 Google Play ARM 64 v8a System Image (revision: 2) Google APIs ARM 64 v8a System Image (revision: 2) With … Read more

Trouble installing Pandas on new MacBook Air M1

Maybe it is too late. But the only solution worked for me is installing from source if you do not want to use rosetta2 or moniconda python3 -m pip install virtualenv virtualenv -p python3.8 venv source venv/bin/activate pip install –upgrade pip pip install numpy cython git clone –depth 1 https://github.com/pandas-dev/pandas.git cd pandas python3 setup.py install

Failed to create new OS thread (have 2 already; errno=22)

Docker has the ability to emulate amd64 on arm64 through qemu which is built into Docker Desktop for Mac. Programs compiled for amd64/x86_64 should still work through this emulation if the Dockerfile is built for amd64 Dockerfile: FROM –platform=linux/amd64 your_amd64_image … or env variable DOCKER_DEFAULT_PLATFORM=linux/amd64 The problem is that there seems to be a bug … Read more

Fixing zsh command not found: brew? (installing Homebrew)

cd /opt/homebrew/bin/ PATH=$PATH:/opt/homebrew/bin cd touch .zshrc echo export PATH=$PATH:/opt/homebrew/bin >> .zshrc Run the commands in that order in terminal, you’ll be editing the path and creating the missing .zshrc file, exporting the path to this new file. Now you should be able to use: brew doctor It should say: “Your system is ready to brew.”

Cannot install Android Emulator via Android Studio on a MacBook Pro M1

Based on the ticket Download of Android Emulator update fails on Mac Mini M1 with both Android Studio and IntelliJ IDEA Ultimate, Google has fixed the issue. The following workaround is no longer required. To clean up and start over: Uninstall Android Studio Remove all existing configuration rm -rf ~/.android \ ~/Library/Application\ Support/Google/AndroidStudio2021.2 \ ~/Library/Android … Read more