After inserting the picture, R file turns red, error "error::app:mergedebugresources". > Some file crunching failed, see logs for detail "

Source: Internet
Author: User

Would like to do a little love, insert the picture after the original run to find a successful program,

An error occurred ": App:mergedebugresources". > Some file crunching failed, see logs for detail "

A face crazy Force ~ ~ ~ this is what ghost, in other people's answer and blog find solutions.

But I don't seem to work, looking for a long time to find the picture is the problem.

Before just simple in renaming the picture to "Xx.png", placed in the App/src/main/res/drawable folder (PS: Now every time I copy the picture and paste into the drawable)

When the use of the error.

OK, no more wordy, the way to improve:

Photo-Edit---> Save as---> choose PNG format

It's good to start with the new compilation after saving.

OK, small white to continue to work hard, the road of Android is very long ah.

After inserting the picture, R file turns red, error "error::app:mergedebugresources". > Some file crunching failed, see logs for detail "

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.