ERROR 'duplicate declaration of type/attribute' at token ';' on line 14430
来源:互联网 发布:js代码混淆后如何还原 编辑:程序博客网 时间:2024/06/07 06:56
MTK添加Android权限te文件后,编译make bootimage报重复duplicate错误。
错误信息:
------------------------------------------------------------------------
out/host/linux-x86/bin/checkpolicy: loading policy configuration fromout/target/product/xxx/obj/ETC/sepolicy_intermediates/policy.conf
device/mediatek/common/sepolicy/device.te:164:ERROR 'duplicate declaration of type/attribute' at token ';' on line 14430:
type xxx_device, dev_type;
checkpolicy: error(s) encountered while parsing configuration
------------------------------------------------------------------------
注意:报错信息中14430行说的是policy.conf文件,不过这不是重点。
duplicate,重复。
报错,重复,哪里重复了呢?
是在这两个目录下重复了:
xxxprj/device/mediatek/common/sepolicy
xxxprj/external/sepolicy
通过这个命令可以看到,确实两个目录下都有,重复了。
xxxprj/device/mediatek/common/sepolicy# find * |xargs grepxxx_device
xxxprj/external/sepolicy# find * |xargs grepxxx_device
原因在于,Android的te权限文件,在两个路径下都可以添加,效果一样,但不能同时有,不然会报重复错误!
解决方法:
删除device或external目录下sepolicy中的一个权限te文件,
删除中间缓存,
# rm -rf out/target/product/xxx/obj/ETC/sepolicy_intermediates
重新编译,生成boot.img,OK。
1 0
- ERROR 'duplicate declaration of type/attribute' at token ';' on line 14430
- Multiple markers at this line, Syntax error on token
- unexcept token. token is : 'union', at line 33 column 2, token type is 'Keyword'
- ERROR at line 1: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
- Notice: unserialize(): Error at offset 134526789 of 2136547489 bytes in file.php on line 130
- PHP中Notice: unserialize(): Error at offset 109 of 615 bytes in on line 的解决方法
- how to solve Error cannot add duplicate collection entry of type add with unique key attribute 'valu
- 服务器返回出现:error on line 19 at column 1: Extra content at the end of the document
- This page contains the following errors: error on line 1 at column 1: Extra content at the end of t
- error: expected declaration or statement at end of input
- error: expected declaration or statement at end of input----solved
- Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme
- Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme
- error: ISO C++ forbids declaration of 'XXXX' with no type
- error: ISO C++ forbids declaration of ‘XXXX’ with no type
- error: ISO C++ forbids declaration of 'XXXX' with no type
- error: ISO C++ forbids declaration of 'XXXX' with no type
- error C2027: useof undefined type 'A' see declaration of 'A'
- 敏捷开发之Scrum扫盲篇
- ASP.NET JsonConvert序列化 三级菜单
- 网络数据包收发流程(三):e1000网卡和DMA
- __stdcall,__cdecl,_cdecl,_stdcall,__fastcall,_fastcall 区别简介
- 浅谈 Linux 内核开发之网络设备驱动
- ERROR 'duplicate declaration of type/attribute' at token ';' on line 14430
- ubuntu14.04 vmware下网络ip配置
- Android软键盘在AndroidManifest中的设置对页面的影响
- 虚拟机三种网络模式&桥接模式设置步骤
- sql参数绑定防止注入
- UVa 1631 Locker (密码锁)
- Shell if else语句
- JAVA 枚举类 Enum
- iOS 10诸如相机、相册、通讯录、麦克风、定位权限设置,防止奔溃或上架被拒