Pro-Test, Eclipse reported "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 folder in the Layout folder in the. xml 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 do not dare to try to use the online method. Just try a "start" and "Run"----> "cmd" into the command prompt line, Then go to the Eclipse folder of the MyEclipse installation directory and enter Eclipse-clean. "But it doesn't work, and the others won't try.


I changed the working environment myself and tried to open the. XML layout file for other Android projects, so I can open it miraculously, so I know that this problem is a work environment, so I created a new folder as the working environment, import the project into the new environment And then open successfully. The problem is solved at this point.


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

Pro-Test, Eclipse reported "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.