in windows7 x64
ANDROID_NDK=F:\TDDownload\android-ndk-r14b-windows-x86_64\android-ndk-r14b
NDK_HOME=f:\TDDownload\android-ndk-r14b-windows-x86_64\android-ndk-r14b
ANDROID_NDK_REPOSITORY=F:\TDDownload\android-ndk-r14b-windows-x86_64\android-ndk-r14b
D:\Users\Administrator\Desktop\bucksamples\cross-platform-scale-2015-demo>buck b
uild demo_app_android
Not using buckd because watchman isn't installed.
Build ID: 33a1707b-f27a-42c8-a602-21be0424f88d
[-] PARSING BUCK FILES...FINISHED 0.0s [100%]
[-] BUILDING...FINISHED 1.3s
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
BUILD FAILED: No native platforms detected. Probably Android NDK is not configured properly.
Try setting ANDROID_NDK_REPOSITORY to the parent directory of the particular versioned ndk folder, in your case: F:\TDDownload\android-ndk-r14b-windows-x86_64\
Hey, here's the section from Getting Started guide:
Before building make sure you installed correct build tools and a target in Android SDK and correct version of Android NDK. You can find the required versions of these tools in .buckconfig:
ndk.ndk_version points to the version of Android NDK.
You need to check the version of ndk in the config and install the correct version.
ndk_version option in buck config (https://buckbuild.com/concept/buckconfig.html#ndk.ndk_version):
The version of the NDK that Buck should use to build native code. This is searched for in the subfolders defined by the folder found in the ANDROID_NDK_REPOSITORY environment variable.
You need to change ANDROID_NDK_REPOSITORY to point to a folder with ndks and then put the specific NDK into a subfolder. For example, if ANDROID_NDK_REPOSITORY points to /tmp/, Android NDK should be in /tmp/android-ndk-r10e.
Most helpful comment
Hey, here's the section from Getting Started guide:
You need to check the version of ndk in the config and install the correct version.
ndk_versionoption in buck config (https://buckbuild.com/concept/buckconfig.html#ndk.ndk_version):You need to change
ANDROID_NDK_REPOSITORYto point to a folder with ndks and then put the specific NDK into a subfolder. For example, ifANDROID_NDK_REPOSITORYpoints to/tmp/, Android NDK should be in/tmp/android-ndk-r10e.