Android.view.InflateException:Binary XML file Line#2:error inflating class<unknown>

Source: Internet
Author: User

Recently in the boot page of the Android program problem, every time when loading the boot page always error, said the unknown fill error, it is depressed ah.

Solutions found from StackOverflow:

When running, Android changes the size of the image (based on screen size and resolution), and Android uses bitmap to change the size of the image. So, this is a very sensitive behavior of memory. A quick fix is to copy the larger picture into the drawable-ldpi, MDPI, hdpi folder. Android will automatically select the right files and change their size again.

(above is the explanation of StackOverflow)

--------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------

In short, will you drawable folder under the larger picture file, is generally the guide page need to load the larger picture, copied to drawable-ldpi, MDPI, hdpi, and then rerun the program, problem solving ~ ~ ~

Android.view.InflateException:Binary XML file Line#2:error inflating class<unknown>

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.