为什么只有我的一些客户遇到不满意的链接错误,而它在大多数情况下都能完美运行?
java.lang.UnsatisfiedLinkError: Couldn't load Foo: findLibrary returned null
我以前读过这个问题,但找不到解决方案。有任何想法吗?
谢谢
编辑:Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# disable thumb mode
LOCAL_ARM_MODE := arm
LOCAL_MODULE := Foo
#-Wno-psabi to remove warning about GCC 4.4 va_list warning
LOCAL_CFLAGS := -DANDROID_NDK -Wno-psabi -Wno-write-strings
LOCAL_DEFAULT_CPP_EXTENSION := cpp
LOCAL_SRC_FILES := \
source1.cpp \
source2.c
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lz
include $(BUILD_SHARED_LIBRARY)