当前位置: 代码迷 >> Android >> Android 编译时失误 /lib/libdl.so.2: could not read symbols: Invalid operation
  详细解决方案

Android 编译时失误 /lib/libdl.so.2: could not read symbols: Invalid operation

热度:141   发布时间:2016-05-01 16:49:06.0
Android 编译时出错 /lib/libdl.so.2: could not read symbols: Invalid operation

如果出现这个错误:
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/accRuntimeTest_intermediates/runtimeTest.o: undefined reference to?dlsym@@GLIBC_2.0
/usr/bin/ld: note:?'dlsym@@GLIBC_2.0'?is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
?
那: vi system/core/libacc/tests/Android.mk
?
LOCAL_SHARED_LIBRARIES := \
??? libacc
?
LOCAL_LDLIBS += -ldl???????????? <<===
?
- - - - -?- - - - -
?
LOCAL_SHARED_LIBRARIES := \
??? libacc
?
LOCAL_LDLIBS += -ldl
?
LOCAL_MODULE_TAGS := tests
?
include $(BUILD_HOST_EXECUTABLE)

  相关解决方案