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

  • Post author:
  • Post category:其他



编译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。



版权声明:本文为viviwen123原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。