Pro-Test, Eclipse newspaper " An error had occurred,see error log for more details. java.lang.nullpointerexception"

Source: Internet
Author: User

Eclipse newspaper "An error had occurred,see error log for more details. Java.lang.NullPointerException ", let me first tell you how I reported this mistake, I would like to open the Android project in the Res directory in the layout directory of the. XML layouts file, the error will be reported.


Then I went to search the Internet, and generally are the answers, there are some answers can not, be scolded poured, so I dare not try to use the online method. Just try a "start" and "execute"----> "cmd" into the command prompt line, Then enter the Eclipse folder of the MyEclipse installation folder and enter Eclipse-clean to "but no use, the others will not dare to try."


I changed the working environment myself, and tried to open the. XML layout file for other Android projects, and miraculously opened it, so I knew that the problem was the work environment, so I created a new directory as the working environment, import the project into the new environment , and then open successfully. This problem has been overcome. (This is the Android project, but MyEclipse is almost the same as eclipse, able to switch to a working environment, and switch environments, which should not cause any bad items or anything else.)


Well, I've met several times, and this has changed a bit more. Android has the benefits, just to clean the project, you can ...


Respect the original, reproduced please specify the source: http://blog.csdn.net/chillax_li/article/details/38752245

Pro-Test, Eclipse newspaper " An error had occurred,see error log for more details. java.lang.nullpointerexception"

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.