我在用React Native开发安卓应用, 今天按照官网上"配置EasyAR Android SDK(非Unity)"的文章去配置, 总是报错
文章链接: https://www.easyar.cn/doc/EasyAR%20SDK/Getting%20Started/2.0/Setting-up-EasyAR-Android-SDK.html#setting-up-easyar-android-sdk
其中最让我头疼的是配置了Android.mk文件后, 一直提醒Error: LOCAL_SRC_FILES points to a missing file
然而LOCAL_SRC_FILES指向的.so文件明明就在那里, 我很不解
文件路径:
项目名/android/app/src/main/jni/Android.mk
代码内容:
include $(CLEAR_VARS)
# make sure this path is avaliable for libEasyAR.so
LOCAL_PATH := $(LOCAL_PATH_TOP)/../jniLibs/armeabi-v7a
LOCAL_MODULE := EasyAR
LOCAL_SRC_FILES := libEasyAR.so
include $(PREBUILT_SHARED_LIBRARY)
LOCAL_LDLIBS += -lGLESv2
LOCAL_SHARED_LIBRARIES += EasyAR
错误信息:
Android.mk文件指向的"项目名/android/app/src/main/jniLibs/armeabi-v7a/libEasyAR.so"文件明明在那里, 却显示Error
Android NDK: ERROR:D:\SDSL\Desktop\AndroidStudio\TourAR\android\app\src\main\jni\Android.mk:EasyAR: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that /../jniLibs/armeabi-v7a/libEasyAR.so exists or that its path is correct
总之除了这个问题, 希望大神们能更进一步分享在React Native上部署EasyAR的方案