Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,674 Members 37,964 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Apktool error after editing PNGs

Tip us?
 
lionelsuyog
Old
#1  
lionelsuyog's Avatar
Senior Member - OP
Thanks Meter 89
Posts: 276
Join Date: Oct 2013
Location: Kathmandu
Default [Q] Apktool error after editing PNGs

After modifying some pngs, and replacing them, Apktool finds a bunch of errors! I've resized every pngs and made sure, there are all the files!
But, while recompiling, it gives such erroe!
Quote:
c_appwidget_settings_lock_screen_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:69: error: Public symbol drawable/i
c_appwidget_settings_lock_screen_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:70: error: Public symbol drawable/i
c_appwidget_settings_orientation_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:71: error: Public symbol drawable/i
c_appwidget_settings_orientation_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:72: error: Public symbol drawable/i
c_appwidget_settings_screen_timeout_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:73: error: Public symbol drawable/i
c_appwidget_settings_screen_timeout_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:74: error: Public symbol drawable/i
c_appwidget_settings_sound_ring_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:75: error: Public symbol drawable/i
c_appwidget_settings_sound_ring_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:76: error: Public symbol drawable/i
c_appwidget_settings_sound_silent declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:77: error: Public symbol drawable/i
c_appwidget_settings_sound_vibrate_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:78: error: Public symbol drawable/i
c_appwidget_settings_sound_vibrate_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:79: error: Public symbol drawable/i
c_appwidget_settings_sync_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:80: error: Public symbol drawable/i
c_appwidget_settings_sync_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:81: error: Public symbol drawable/i
c_appwidget_settings_wifi_ap_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:82: error: Public symbol drawable/i
c_appwidget_settings_wifi_ap_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:83: error: Public symbol drawable/i
c_appwidget_settings_wifi_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:84: error: Public symbol drawable/i
c_appwidget_settings_wifi_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:85: error: Public symbol drawable/i
c_appwidget_settings_wimax_off declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:86: error: Public symbol drawable/i
c_appwidget_settings_wimax_on declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:170: error: Public symbol drawable/
ic_arraw declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:171: error: Public symbol drawable/
ic_arraw_pressed declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:172: error: Public symbol drawable/
ic_bt_cellphone declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:173: error: Public symbol drawable/
ic_bt_headphones_a2dp declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:174: error: Public symbol drawable/
ic_bt_headset_hfp declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:175: error: Public symbol drawable/
ic_bt_laptop declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:176: error: Public symbol drawable/
ic_btn_next declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:177: error: Public symbol drawable/
ic_menu_info_details declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:178: error: Public symbol drawable/
ic_menu_refresh declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:179: error: Public symbol drawable/
ic_menu_scan_network declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:109: error: Public symbol drawable/
ic_power_system declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:180: error: Public symbol drawable/
ic_settings_bluetooth declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:181: error: Public symbol drawable/
ic_settings_cell_standby declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:182: error: Public symbol drawable/
ic_settings_display declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:183: error: Public symbol drawable/
ic_settings_phone_idle declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:184: error: Public symbol drawable/
ic_settings_voice_calls declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:185: error: Public symbol drawable/
ic_settings_wifi declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:110: error: Public symbol drawable/
ic_tab_all declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:111: error: Public symbol drawable/
ic_tab_download declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:112: error: Public symbol drawable/
ic_tab_running declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:113: error: Public symbol drawable/
ic_tab_sdcard declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:186: error: Public symbol drawable/
ic_tab_selected_all declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:187: error: Public symbol drawable/
ic_tab_selected_download declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:188: error: Public symbol drawable/
ic_tab_selected_running declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:189: error: Public symbol drawable/
ic_tab_selected_sdcard declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:190: error: Public symbol drawable/
ic_tab_unselected_all declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:191: error: Public symbol drawable/
ic_tab_unselected_download declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:192: error: Public symbol drawable/
ic_tab_unselected_running declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:193: error: Public symbol drawable/
ic_tab_unselected_sdcard declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:194: error: Public symbol drawable/
ic_title_about declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:195: error: Public symbol drawable/
ic_title_airplane declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:196: error: Public symbol drawable/
ic_title_backup declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:197: error: Public symbol drawable/
ic_title_battery declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:198: error: Public symbol drawable/
ic_title_bluetooth declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:199: error: Public symbol drawable/
ic_title_calling declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:200: error: Public symbol drawable/
ic_title_carrier declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:201: error: Public symbol drawable/
ic_title_datetime declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:202: error: Public symbol drawable/
ic_title_device declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:203: error: Public symbol drawable/
ic_title_display declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:204: error: Public symbol drawable/
ic_title_hardware declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:205: error: Public symbol drawable/
ic_title_language declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:206: error: Public symbol drawable/
ic_title_location declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:207: error: Public symbol drawable/
ic_title_manager declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:208: error: Public symbol drawable/
ic_title_other declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:209: error: Public symbol drawable/
ic_title_security declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:210: error: Public symbol drawable/
ic_title_sound declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:211: error: Public symbol drawable/
ic_title_storage declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:212: error: Public symbol drawable/
ic_title_sync declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:213: error: Public symbol drawable/
ic_title_wallpaper declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:214: error: Public symbol drawable/
ic_title_wlan declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:215: error: Public symbol drawable/
ic_wifi_item_checked declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:216: error: Public symbol drawable/
ic_wifi_lock_signal_1 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:217: error: Public symbol drawable/
ic_wifi_lock_signal_2 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:218: error: Public symbol drawable/
ic_wifi_lock_signal_3 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:219: error: Public symbol drawable/
ic_wifi_lock_signal_4 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:220: error: Public symbol drawable/
ic_wifi_signal_1 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:221: error: Public symbol drawable/
ic_wifi_signal_2 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:222: error: Public symbol drawable/
ic_wifi_signal_3 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:223: error: Public symbol drawable/
ic_wifi_signal_4 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:224: error: Public symbol drawable/
icon declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:225: error: Public symbol drawable/
icon_sound_music declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:114: error: Public symbol drawable/
indicator_ic_mp_playing_list declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:115: error: Public symbol drawable/
indicator_ic_mp_playing_list_pressed declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:116: error: Public symbol drawable/
item_bk_color declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:117: error: Public symbol drawable/
item_bk_color_bottom declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:118: error: Public symbol drawable/
item_bk_color_top declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:119: error: Public symbol drawable/
listitembackground declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:120: error: Public symbol drawable/
listview_speaker declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:121: error: Public symbol drawable/
lock_anim declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:226: error: Public symbol drawable/
lock_anim_0 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:227: error: Public symbol drawable/
lock_anim_1 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:228: error: Public symbol drawable/
lock_anim_10 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:229: error: Public symbol drawable/
lock_anim_11 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:230: error: Public symbol drawable/
lock_anim_12 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:231: error: Public symbol drawable/
lock_anim_13 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:232: error: Public symbol drawable/
lock_anim_14 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:233: error: Public symbol drawable/
lock_anim_2 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:234: error: Public symbol drawable/
lock_anim_3 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:235: error: Public symbol drawable/
lock_anim_4 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:236: error: Public symbol drawable/
lock_anim_5 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:237: error: Public symbol drawable/
lock_anim_6 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:238: error: Public symbol drawable/
lock_anim_7 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:239: error: Public symbol drawable/
lock_anim_8 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:240: error: Public symbol drawable/
lock_anim_9 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:241: error: Public symbol drawable/
password_field_default declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:122: error: Public symbol drawable/
progress_horizontal declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:123: error: Public symbol drawable/
progressbar_refresh1 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:124: error: Public symbol drawable/
progressbar_refresh2 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:125: error: Public symbol drawable/
progressbar_refresh3 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:126: error: Public symbol drawable/
progressbar_refresh4 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:127: error: Public symbol drawable/
progressbar_refresh5 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:128: error: Public symbol drawable/
progressbar_refresh6 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:129: error: Public symbol drawable/
progressbar_refresh7 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:130: error: Public symbol drawable/
progressbar_refresh8 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:131: error: Public symbol drawable/
qw_copyright_applicationbar_bg declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:132: error: Public symbol drawable/
qw_copyright_applicationbar_return declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:133: error: Public symbol drawable/
qw_copyright_applicationbar_return_bg declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:134: error: Public symbol drawable/
qw_copyright_applicationbar_return_pressed declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:242: error: Public symbol drawable/
qw_copyright_logo declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:135: error: Public symbol drawable/
qw_copyright_menu_about declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:136: error: Public symbol drawable/
sound_bottom_external_bk declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:243: error: Public symbol drawable/
sound_item_pressed declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:244: error: Public symbol drawable/
sound_music_bottom_external declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:245: error: Public symbol drawable/
sound_music_button_normal declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:246: error: Public symbol drawable/
sound_music_button_pressed declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:137: error: Public symbol drawable/
sound_music_item_bk declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:247: error: Public symbol drawable/
sound_sigle_choise_bt_checked declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:248: error: Public symbol drawable/
sound_sigle_choise_bt_normal declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:249: error: Public symbol drawable/
switcher_aniu_left declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:250: error: Public symbol drawable/
switcher_anniu declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:251: error: Public symbol drawable/
switcher_bk declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:252: error: Public symbol drawable/
switcher_bk_disenable declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:253: error: Public symbol drawable/
switcher_bk_frame declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:254: error: Public symbol drawable/
switcher_button declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:255: error: Public symbol drawable/
switcher_frame declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:256: error: Public symbol drawable/
sym_app_on_sd_unavailable_icon declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:257: error: Public symbol drawable/
theme_qualwin_style_settings declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:258: error: Public symbol drawable/
thum1 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:259: error: Public symbol drawable/
title_frame_title declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:260: error: Public symbol drawable/
title_settings declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:138: error: Public symbol drawable/
wheel_bg declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:139: error: Public symbol drawable/
wheel_val declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:143: error: Public entry identifier
0x7f0200f7 entry index is larger than available symbols (index 247, total symbo
ls 1).
F:\apktool\JOYSettings\res\values\public.xml:143: error: Public symbol drawable/
white declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:140: error: Public symbol drawable/
wifi_signal declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:141: error: Public symbol drawable/
wifi_signal_lock declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:142: error: Public symbol drawable/
wifi_signal_open declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:261: error: Public symbol drawable/
yinliangtiao declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:262: error: Public symbol drawable/
yinliangtiao1 declared here is not defined.
F:\apktool\JOYSettings\res\values\public.xml:263: error: Public symbol drawable/
yinliangtiao2 declared here is not defined.

F:\apktool>
 
marcussmith2626
Old
#2  
marcussmith2626's Avatar
Recognized Contributor
Thanks Meter 2372
Posts: 4,401
Join Date: Jul 2012
Location: London
I presume you have kept all file names the same of the pngs you have replaced and have not deleted any pngs and not replaced it with a png of the same name

I also presume you have loaded the correct framework for the apk you are decompiling

you can if you want just delete all the lines in public.xml that give the error and when you recompile it will rebuild the public.xml however the public values may now not be the same as what they were and any smali which references these will also need their value changed else it may lead to force close

My Work And Threads For Galaxy Y GT-S5360


My PM is not a Question & Answer thread - Dont treat it as such!
The Following User Says Thank You to marcussmith2626 For This Useful Post: [ Click to Expand ]
Tags
apktool, error, recompiling
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes