Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ReactAndroid build break. #22377

Closed
wants to merge 1 commit into from
Closed

Commits on Nov 22, 2018

  1. Fix ReactAndroid build break.

    Summary:
      During C++ build, we need the libjsc.so.
      But arm64-v8a and x86_64 libjsc.so are in different path and this error raised:
    
        Android NDK: ERROR:/home/circleci/react-native/ReactAndroid/build/third-party-ndk/jsc/Android.mk:jsc: LOCAL_SRC_FILES points to a missing file
        /opt/ndk/android-ndk-r17c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.
        Android NDK: Check that /home/circleci/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/arm64-v8a/libjsc.so exists  or that its path is correct
    
      The commit moves prebuilt libjsc.so into
      ReactAndroid/src/main/jni/third-party/jsc/jni and let ndkbuild script find the prebuilt libjsc.so.
      For AAR packaging, modify the jniLibs so that gradle android library plugin could find the prebuilt libjsc.so as well.
    Kudo committed Nov 22, 2018
    Configuration menu
    Copy the full SHA
    5adfe8a View commit details
    Browse the repository at this point in the history