Android's magic "FileNotFoundException"

Source: Internet
Author: User

Yesterday, my shoes in the Group encountered an egg bug and listened to me carefully.

1. compiling environment:


Maven

2. Problem:

A png under drawbable, in 2. under the x machine, it is always reported that filenotfound is a situation of magic horse (E/AndroidRuntime (30508): Caused by: java. io. fileNotFoundException: res/drawable/img_line_night.png );


4. X is normal.

3. Try the following methods:

Re-compilation, image change, and name change failed

4. solution:

The error message returned by logcat is incorrect. A theme attribute is missing, but the error message cannot be found in other files.

5. Experience summary:

Sometimes the location reported by Android logcat logs is not accurate enough. In special cases, we need to perform more careful and in-depth analysis on the logs, so we cannot blindly process the logs. Otherwise, we will waste a lot of time.

 

 

 

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.