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 "