Android NDK, Error:(165, 0) Cause: ndk-build binary cannot be found -
i'm trying run react-native reactandroid project androidstudio. ndk error.
error:(165, 0) cause: ndk-build binary cannot found, check if you've set $android_ndk environment variable correctly or if ndk.dir setup in local.properties
i have downloaded android ndk here http://developer.android.com/intl/pt-br/ndk/downloads/index.html
echo $android_ndk
gives /users/lu/dev/android/android-ndk-r10e
inside local.properties have: ndk.dir=/users/username/dev/android/android-ndk-r10e
i'm using android studio 1.4
i got same error when running ui explorer app react native on android. if on mac here worked me:
$ brew install android-ndk
$ echo 'export android_ndk_home=/usr/local/opt/android-ndk' >> ~/.bash_profile
restart terminal
make sure have emulator running then:
cd react-native ./gradlew :examples:uiexplorer:android:app:installdebug ./packager/packager.sh
the initial build take sometime
Comments
Post a Comment