您的位置:首页 > 移动开发 > Android开发

Android5.1 framework 添加资源文件后编译报错

2015-11-05 15:14 495 查看
报错log:

You have tried to change Android framework-res resource ID. Please fix the errors listed above by

restoring the changes.
******************************

target Java: com.mediatek.qsb.ext (out/target/common/obj/JAVA_LIBRARIES/com.mediatek.qsb.ext_intermediates/classes)

Checking Framework Resource ID API: checkframeworkresidapi-last

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4158: error 17: Field com.android.internal.R.drawable.ic_maps_indicator_current_position_anim has changed value from 17302435 to 17302437

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4165: error 17: Field com.android.internal.R.drawable.ic_media_route_connecting_holo_dark has changed value from 17302441 to 17302443

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4166: error 17: Field com.android.internal.R.drawable.ic_media_route_disabled_holo_dark has changed value from 17302444 to 17302446

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4167: error 17: Field com.android.internal.R.drawable.ic_media_route_off_holo_dark has changed value from 17302450 to 17302452

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4168: error 17: Field com.android.internal.R.drawable.ic_media_route_on_holo_dark has changed value from 17302462 to 17302464

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4169: error 17: Field com.android.internal.R.drawable.ic_media_stop has changed value from 17302465 to 17302467

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4170: error 17: Field com.android.internal.R.drawable.ic_media_video_poster has changed value from 17302466 to 17302468

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4174: error 17: Field com.android.internal.R.drawable.ic_menu_archive has changed value from 17302469 to 17302471

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4177: error 17: Field com.android.internal.R.drawable.ic_menu_cc has changed value from 17302475 to 17302477

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4186: error 17: Field com.android.internal.R.drawable.ic_menu_goto has changed value from 17302497 to 17302499

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4193: error 17: Field com.android.internal.R.drawable.ic_menu_moreoverflow_normal_holo_dark has changed value from 17302509 to 17302511

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4197: error 17: Field com.android.internal.R.drawable.ic_menu_play_clip has changed value from 17302516 to 17302518

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4200: error 17: Field com.android.internal.R.drawable.ic_menu_refresh has changed value from 17302517 to 17302519

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4219: error 17: Field com.android.internal.R.drawable.ic_notification_ime_default has changed value from 17302535 to 17302537

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4225: error 17: Field com.android.internal.R.drawable.ic_print has changed value from 17302571 to 17302573

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4226: error 17: Field com.android.internal.R.drawable.ic_print_error has changed value from 17302572 to 17302574

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4229: error 17: Field com.android.internal.R.drawable.ic_settings has changed value from 17302577 to 17302579

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4230: error 17: Field com.android.internal.R.drawable.ic_settings_language has changed value from 17302578 to 17302580

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4231: error 17: Field com.android.internal.R.drawable.ic_sim_card_multi_24px_clr has changed value from 17302579 to 17302581

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4232: error 17: Field com.android.internal.R.drawable.ic_sim_card_multi_48px_clr has changed value from 17302580 to 17302582

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4233: error 17: Field com.android.internal.R.drawable.ic_text_dot has changed value from 17302584 to 17302586

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4234: error 17: Field com.android.internal.R.drawable.ic_volume has changed value from 17302591 to 17302593

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4235: error 17: Field com.android.internal.R.drawable.ic_volume_off_small has changed value from 17302595 to 17302597

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4236: error 17: Field com.android.internal.R.drawable.ic_volume_small has changed value from 17302596 to 17302598

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4237: error 17: Field com.android.internal.R.drawable.indicator_input_error has changed value from 17302602 to 17302604

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4238: error 17: Field com.android.internal.R.drawable.jog_dial_arrow_long_left_green has changed value from 17302609 to 17302611

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4239: error 17: Field com.android.internal.R.drawable.jog_dial_arrow_long_right_red has changed value from 17302612 to 17302614

out/target/common/obj/PACKAGING/framework_res_id_api.txt:4240: error 17: Field c

报错原因: 在 AndroidFramework 添加资源文件后破坏了系统原有Api

解决办法: 添加图片文件请在/vendor/mediatek/proprietary/frameworks/base/res 添加资源文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Android framework