Android Q编译过程中问题 undefined reference to ‘property_get‘
Android Q编译过程中问题
error: undefined reference to ‘property_get’
collect2: ld returned 1 exit status
解决
你必须在源文件中
#include <cutils/properties.h>
并将链接添加到您的android.mk 或android.bp
libcutils:
根据自己的情况在合适的地方添加
LOCAL_STATIC_LIBRARIES := libcutils
可参考自己代码中使用过这个方
原创
2021-10-21 09:42:54 ·
1182 阅读 ·
0 评论