Home > database >  Unknown host CPU architecture: arm64 2022 Macbook Air M1
Unknown host CPU architecture: arm64 2022 Macbook Air M1

Time:01-21

I cannot resolve this error, even though it is mentioned as resolved here in M1.

enter image description here

What else can I do? How can I install .dmg beta ndk? It is not available in SDK Manager via Android Studio.

Also after editing this file my OS says it is corrupted/ damaged. How can I edit it properly?

CodePudding user response:

Using Sublime Text editor instead of Macbook text editor allowed me to edit it without corrupting it. Edit ndk-build file in Library/Android/sdk/ndk to:

#!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)"
arch -x86_64 /bin/bash $DIR/build/ndk-build "$@"
  •  Tags:  
  • Related