现在的位置: 首页 > 综合 > 正文

[exec] ERROR: 9-patch image xxx.9.png malformed. [exec] No marked region found along edge.

2017年11月18日 ⁄ 综合 ⁄ 共 15280字 ⁄ 字号 评论关闭

用ant打包工程编译资源时报下面的错误:

E:\trunk\trunk>E:\new_envi\apache-ant-1.8.4\bin\ant release
Buildfile: E:\trunk\trunk\build.xml

package-resource:
     [echo] Packaging resources and assets E:\trunk\trunk\bin\resources.ap_
   ...
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\long_red_btn_n
ormal.9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\long_red_btn_normal.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\long_red_btn_s
el.9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\long_red_btn_sel.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\um_btn_disable
.9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\um_btn_disable.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\um_btn_normal.
9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\um_btn_normal.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\um_btn_pressed
.9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\um_btn_pressed.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\um_btn_selecte
d.9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\um_btn_selected.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\us_progress_ba
r_bg.9.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\us_progress_bar_bg.9.png
     [exec] ERROR: 9-patch image E:\trunk\trunk\res\drawable-hdpi\youshi_login.9
.png malformed.
     [exec]        No marked region found along edge.
     [exec]        Found along top edge.
     [exec] ERROR: Failure processing PNG image E:\trunk\trunk\res\drawable-hdpi
\youshi_login.9.png
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:18: error: Error: No resourc
e found that matches the given name (at 'src' with value '@drawable/video_audio_
icon').
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:52: error: Error: No resourc
e found that matches the given name (at 'background' with value '@drawable/video
_audio_text_bg').
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:68: error: Error: No resourc
e found that matches the given name (at 'background' with value '@drawable/video
_ctl_bg').
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:78: error: Error: No resourc
e found that matches the given name (at 'background' with value '@drawable/long_
red_btn').
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:78: error: Error: No resourc
e found that matches the given name (at 'drawableLeft' with value '@drawable/vid
eo_icon').
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:109: error: Error: No resour
ce found that matches the given name (at 'background' with value '@drawable/bk_y
angshenqi').
     [exec] E:\trunk\trunk\res\layout\emb_audio.xml:129: error: Error: No resour
ce found that matches the given name (at 'background' with value '@drawable/bk_t
ingtong').
     [exec] E:\trunk\trunk\res\layout\emb_call_fail.xml:33: error: Error: No res
ource found that matches the given name (at 'background' with value '@drawable/y
ouxin_embed_btn_bg').
     [exec] E:\trunk\trunk\res\layout\emb_call_fail.xml:42: error: Error: No res
ource found that matches the given name (at 'background' with value '@drawable/y
ouxin_embed_btn_bg').
     [exec] E:\trunk\trunk\res\layout\emb_call_out.xml:11: error: Error: No reso
urce found that matches the given name (at 'background' with value '@drawable/vi
deo_titlebar_bg').
     [exec] E:\trunk\trunk\res\layout\emb_call_out.xml:57: error: Error: No reso
urce found that matches the given name (at 'src' with value '@drawable/video_use
r').
     [exec] E:\trunk\trunk\res\layout\emb_call_out.xml:72: error: Error: No reso
urce found that matches the given name (at 'background' with value '@drawable/vi
deo_ctl_bg').
     [exec] E:\trunk\trunk\res\layout\emb_call_out.xml:89: error: Error: No reso
urce found that matches the given name (at 'background' with value '@drawable/lo
ng_red_btn').
     [exec] E:\trunk\trunk\res\layout\emb_call_out.xml:89: error: Error: No reso
urce found that matches the given name (at 'drawableLeft' with value '@drawable/
video_icon').
     [exec] E:\trunk\trunk\res\layout\emb_video_controlbar.xml:41: error: Error:
 No resource found that matches the given name (at 'background' with value '@dra
wable/cam_control').
     [exec] E:\trunk\trunk\res\layout\emb_video_controlbar.xml:53: error: Error:
 No resource found that matches the given name (at 'background' with value '@dra
wable/video_ctlbar_bg').
     [exec] E:\trunk\trunk\res\layout\emb_video_titlebar.xml:10: error: Error: N
o resource found that matches the given name (at 'src' with value '@drawable/swi
tch_cam').
     [exec] E:\trunk\trunk\res\layout\embed_progressbar.xml:2: error: Error: No
resource found that matches the given name (at 'background' with value '@drawabl
e/us_progress_bar_bg').
     [exec] E:\trunk\trunk\res\layout\login_verify.xml:27: error: Error: No reso
urce found that matches the given name (at 'background' with value '@drawable/re
gister_editor').
     [exec] E:\trunk\trunk\res\layout\login_verify.xml:110: error: Error: No res
ource found that matches the given name (at 'background' with value '@drawable/y
ouxin_embed_btn_bg').
     [exec] E:\trunk\trunk\res\layout\login_verify.xml:160: error: Error: No res
ource found that matches the given name (at 'background' with value '@drawable/y
ouxin_embed_btn_bg').
     [exec] E:\trunk\trunk\res\layout\login_verify.xml:171: error: Error: No res
ource found that matches the given name (at 'background' with value '@drawable/y
ouxin_embed_btn_bg').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module1.xml:19: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/youshi_regist').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module1.xml:24: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/youshi_regist_focus').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module1.xml:32: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/register_jiantou').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module2.xml:19: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/youshi_regist').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module2.xml:24: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/youshi_regist_focus').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module2.xml:33: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/register_jiantou').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module3.xml:19: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/youshi_regist').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module3.xml:24: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/youshi_regist_focus').
     [exec] E:\trunk\trunk\res\layout\reg_guide_module3.xml:34: error: Error: No
 resource found that matches the given name (at 'background' with value '@drawab
le/register_jiantou').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:12: error: Er
ror: No resource found that matches the given name (at 'background' with value '
@drawable/video_titlebar_bg').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:59: error: Er
ror: No resource found that matches the given name (at 'src' with value '@drawab
le/video_user').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:74: error: Er
ror: No resource found that matches the given name (at 'background' with value '
@drawable/video_calling_bg').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:83: error: Er
ror: No resource found that matches the given name (at 'background' with value '
@drawable/video_phone').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:83: error: Er
ror: No resource found that matches the given name (at 'drawableLeft' with value
 '@drawable/video_accept_icon').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:102: error: E
rror: No resource found that matches the given name (at 'drawableLeft' with valu
e '@drawable/video_icon').
     [exec] E:\trunk\trunk\res\layout\umfacetime_incoming_call.xml:102: error: E
rror: No resource found that matches the given name (at 'background' with value
'@drawable/long_red_btn').
     [exec] E:\trunk\trunk\res\layout\umfacetime_video_bar.xml:2: error: Error:
No resource found that matches the given name (at 'background' with value '@draw
able/video_ctlbar_bg').
     [exec] E:\trunk\trunk\res\layout\umfacetime_video_bar.xml:40: error: Error:
 No resource found that matches the given name (at 'background' with value '@dra
wable/video_end_btn').
     [exec] E:\trunk\trunk\res\layout\umfacetime_video_bar.xml:51: error: Error:
 No resource found that matches the given name (at 'src' with value '@drawable/v
ideo_end_icon').
     [exec] E:\trunk\trunk\res\drawable\cam_control.xml:4: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/cam_
close').
     [exec] E:\trunk\trunk\res\drawable\cam_control.xml:5: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/cam_
close').
     [exec] E:\trunk\trunk\res\drawable\cam_control.xml:6: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/cam_
open').
     [exec] E:\trunk\trunk\res\drawable\cam_control.xml:7: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/cam_
close').
     [exec] E:\trunk\trunk\res\drawable-hdpi\green_btn.xml:3: error: Error: No r
esource found that matches the given name (at 'drawable' with value '@drawable/u
m_btn_normal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\green_btn.xml:9: error: Error: No r
esource found that matches the given name (at 'drawable' with value '@drawable/u
m_btn_pressed').
     [exec] E:\trunk\trunk\res\drawable-hdpi\green_btn.xml:14: error: Error: No
resource found that matches the given name (at 'drawable' with value '@drawable/
um_btn_normal').
     [exec] E:\trunk\trunk\res\drawable\login_regist.xml:3: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/log
in_registnormal').
     [exec] E:\trunk\trunk\res\drawable\login_regist.xml:6: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/log
in_registfocus').
     [exec] E:\trunk\trunk\res\drawable\login_regist.xml:8: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/log
in_registnormal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\long_red_btn.xml:3: error: Error: N
o resource found that matches the given name (at 'drawable' with value '@drawabl
e/long_red_btn_normal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\long_red_btn.xml:9: error: Error: N
o resource found that matches the given name (at 'drawable' with value '@drawabl
e/long_red_btn_sel').
     [exec] E:\trunk\trunk\res\drawable-hdpi\long_red_btn.xml:14: error: Error:
No resource found that matches the given name (at 'drawable' with value '@drawab
le/long_red_btn_normal').
     [exec] E:\trunk\trunk\res\drawable\register_checkbox.xml:3: error: Error: N
o resource found that matches the given name (at 'drawable' with value '@drawabl
e/register_check_select').
     [exec] E:\trunk\trunk\res\drawable\register_checkbox.xml:4: error: Error: N
o resource found that matches the given name (at 'drawable' with value '@drawabl
e/register_check_select').
     [exec] E:\trunk\trunk\res\drawable\register_checkbox.xml:5: error: Error: N
o resource found that matches the given name (at 'drawable' with value '@drawabl
e/register_check').
     [exec] E:\trunk\trunk\res\drawable\register_checkbox.xml:7: error: Error: N
o resource found that matches the given name (at 'drawable' with value '@drawabl
e/register_check_select').
     [exec] E:\trunk\trunk\res\drawable-hdpi\switch_cam.xml:4: error: Error: No
resource found that matches the given name (at 'drawable' with value '@drawable/
switch_cam_disselect').
     [exec] E:\trunk\trunk\res\drawable-hdpi\switch_cam.xml:8: error: Error: No
resource found that matches the given name (at 'drawable' with value '@drawable/
switch_cam_selected').
     [exec] E:\trunk\trunk\res\drawable-hdpi\switch_cam.xml:11: error: Error: No
 resource found that matches the given name (at 'drawable' with value '@drawable
/switch_cam_selected').
     [exec] E:\trunk\trunk\res\drawable-hdpi\switch_cam.xml:15: error: Error: No
 resource found that matches the given name (at 'drawable' with value '@drawable
/switch_cam_disselect').
     [exec] E:\trunk\trunk\res\drawable-hdpi\switch_cam.xml:18: error: Error: No
 resource found that matches the given name (at 'drawable' with value '@drawable
/switch_cam_disable').
     [exec] E:\trunk\trunk\res\drawable-hdpi\um_btn.xml:4: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/um_b
tn_normal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\um_btn.xml:8: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/um_b
tn_pressed').
     [exec] E:\trunk\trunk\res\drawable-hdpi\um_btn.xml:11: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/um_
btn_selected').
     [exec] E:\trunk\trunk\res\drawable-hdpi\um_btn.xml:15: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/um_
btn_normal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\um_btn.xml:18: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/um_
btn_disable').
     [exec] E:\trunk\trunk\res\drawable\video_audio.xml:3: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/vide
o_audionormal').
     [exec] E:\trunk\trunk\res\drawable\video_audio.xml:9: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/vide
o_audioselect').
     [exec] E:\trunk\trunk\res\drawable\video_audio.xml:14: error: Error: No res
ource found that matches the given name (at 'drawable' with value '@drawable/vid
eo_audionormal').
     [exec] E:\trunk\trunk\res\drawable\video_end_btn.xml:4: error: Error: No re
source found that matches the given name (at 'drawable' with value '@drawable/vi
deo_end_focus').
     [exec] aapt: warning: string 'set_network_net_body' has no default translat
ion in E:\trunk\trunk\res; found: zh_CN zh_TW
     [exec] E:\trunk\trunk\res\drawable\video_end_btn.xml:5: error: Error: No re
source found that matches the given name (at 'drawable' with value '@drawable/vi
deo_end_normal').
     [exec] E:\trunk\trunk\res\drawable\video_phone.xml:3: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/gree
n_btn_normal').
     [exec] E:\trunk\trunk\res\drawable\video_phone.xml:4: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/gree
n_btn_sel').
     [exec] E:\trunk\trunk\res\drawable\video_phone.xml:5: error: Error: No reso
urce found that matches the given name (at 'drawable' with value '@drawable/gree
n_btn_normal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\youxin_embed_btn_bg.xml:4: error: E
rror: No resource found that matches the given name (at 'drawable' with value '@
drawable/youxin_embed_btn_bg_normal').
     [exec] E:\trunk\trunk\res\drawable-hdpi\youxin_embed_btn_bg.xml:10: error:
Error: No resource found that matches the given name (at 'drawable' with value '
@drawable/youxin_embed_btn_bg_select').
     [exec] E:\trunk\trunk\res\drawable-hdpi\youxin_embed_btn_bg.xml:15: error:
Error: No resource found that matches the given name (at 'drawable' with value '
@drawable/youxin_embed_btn_bg_normal').

BUILD FAILED
E:\trunk\trunk\build.xml:205: exec returned: 1

问题原因是工程中的资源文件xx.9.png的图片有问题,;

解决方法:

可以让ui改下,或者自己动手改下;自己修改的话,则使用android sdk中的目录tools下的工具draw9patch.bat来在图片的边缘描绘下图片的边缘可以解决

抱歉!评论已关闭.