码迷,mamicode.com
首页 > 移动开发 > 详细

编译android4.4 报错error: call to '__property_get_too_small_error' declared with attribute 的处理 (转载)

时间:2014-10-07 13:44:23      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:android   blog   http   io   os   ar   sp   art   c   

  转自:http://blog.csdn.net/syhost/article/details/14448899

 

完整的报错为:


system/core/include/cutils/properties.h:64:39: error: call to ‘__property_get_too_small_error‘ declared with attribute error: property_get() called with too small of a bufferIn function ‘property_get‘,



解决方法:

找到调用property_get的地方 将中间一个数组参数的定义改一下:

比如:

之前为:

value[128];

.

.

property_get("persist.xxx.xxxx",value,"0");



改为:

value[PROPERTY_VALUE_MAX];

.

.

property_get("persist.xxx.xxxx",value,"0");

编译android4.4 报错error: call to '__property_get_too_small_error' declared with attribute 的处理 (转载)

标签:android   blog   http   io   os   ar   sp   art   c   

原文地址:http://www.cnblogs.com/lance-ehf/p/4009055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!