I cannot resolve this error, even though it is mentioned as resolved here in M1.
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 "$@"

