Android Studio picture Error:9-patch image xx. 9.png Malformed

Source: Internet
Author: User

Android Studio pictures error 9-patch image error in Android


Error:9-patch image xx. 9.png Malformed


1) Exception:

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center "/>


AAPT Err (1118615418): Error:9-patch image icon_item_bottom_line.9.png MalformedNo marked region Found along edge. Found along left edge
Crunrhing Cruncher Icon_item_bottom_line.9.png failed See logs

2) Reason:

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center "width=" 480 "height=" 480 "/>


Error message: No marked region found along edge. ( the AAPT tool cannot confirm the stretch area in the 9-patch picture )

because make the Android 9-patch picture (e.g.)

The picture was simply marked with a vertical stretch ( left side) area , without marking the horizontal stretch ( Upper ) area,

Therefore AAPT cannot confirm The stretch area of the 9-patch picture.


9-patch pictures (. 9.png) If you want to take effect, you need to have horizontal and vertical edge marking area (left & top)

Related 9-patch production references:

Http://www.cnblogs.com/loulijun/archive/2011/12/22/2298087.html


Related articles:

Http://stackoverflow.com/questions/4280398/9-patch-image-error-in-android

Http://stackoverflow.com/questions/3733471/android-9-patch-png-what-if-i-need-smth-like-a-11-patch-png


I wish you every daily diligence

  ┏┓┏┓//┏┛┻━━━┛┻┓//┃┃//┃━┃//┃┳┛┗┳┃//┃┃//┃┻┃//┃┃//┗━┓┏━┛//   ┃┃   god of animal protection Woo//   ┃┃   Code no bug!

┃┗━━━┓// ┃┣┓// ┃┏┛// ┗┓┓┏━┳┓┏┛// ┃┫┫┃┫┫// ┗┻┛┗┻┛


Android Studio picture Error:9-patch image xx. 9.png Malformed

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.