Android modification does not work, or minor modification causes layout disorder or even inexplicable exceptions.

Source: Internet
Author: User

I have encountered some inexplicable situations in my work recently. I don't know if I have met anyone. I made a small modification to a layout xml file. As a result, the entire interface is completely unsightly and has no logic. You can troubleshoot code issues multiple times. On one occasion, I just repaired the android: background of a control. As a result, multiple irrelevant pages report nullpointerexception, ClassCastException, and so on. Both on the simulator and on the real machine, restarting eclipse does not help. After several attempts, it is preliminarily determined that it is ide or adt intermittent extraction. The following are my summary methods. 1. delete some files in the bin directory and run them. In this way, the vast majority of "changes do not work" can be solved. 2. Withdraw the modification and run it once. Then modify the file and run it again. It can solve other situations.

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.