编译错误android::RefBase::decStrong的解决

错误log为:

target SharedLib: libid3test (out/target/product/v700_cxvr/obj/SHARED_LIBRARIES/libid3test_intermediates/LINKED/libid3test.so)
system/core/include/utils/StrongPointer.h:143: error: undefined reference to 'android::RefBase::decStrong(void const*) const'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/v700_cxvr/obj/SHARED_LIBRARIES/libid3test_intermediates/LINKED/libid3test.so] Error 1
make: Leaving directory `/home/local/ACTIONS/lizekun/700E/android/android'

解决方案:
在Android.mk中添加  LOCAL_LDFLAGS := -Wl,--unresolved-symbols=ignore-all即可解决问题。


你可能感兴趣的:(android系统)