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. (although this is the Android project, but MyEclipse is almost the same as eclipse, can switch the work environment to see, and switch the environment, should not cause any project bad or other bar)
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"