编译facebook/android-jsc时NDK找不到问题解决

编译android-jsc时提示错误:

BUILD FAILED: Unrecognized flavor in target //jsc:jscoffsetextractor#android-armv7,static while parsing //jsc/BUCK
Here are some things you can try to get the following flavors to work::
android-armv7 : Make sure you have the Android SDK/NDK installed and set up. See https://buckbuild.com/setup/install.html#locate-android-sdk

    when trying to get dependency '//jsc:jscoffsetextractor#android-armv7,static' of target '//jsc:LLIntAssembly.android-armv7.h'

但是ANDROID_HOME和ANDROID_NDK均已配置,google后,找到issue:https://github.com/facebook/android-jsc/issues/6。只须将android-jsc目录下的.buckconfig的ndk_version改为正确的即可。这个ndk_version可以在ndk根目录下的source.properties中找到,比如:ndk_version = 13.0.3315539。

你可能感兴趣的:(android,linux)