The android developer of svn1.6 is also noted.
A few days ago, I updated my development environment, downloaded the new version of Eclipse, updated SDK to 4.2, and updated ADT to 21.
After loading the old eclipse_workspace with the new version of Eclipse, it is found that the project checkout from the SVN version library cannot be compiled, and the following error is reported:
Errors occurred during the build.
Errors running builder 'android pre compiler 'on Project 'my project name'
Java. Lang. nullpointerexception.
<! -- Reprinted please indicate the source: Liu burn column http://blog.csdn.net/ft2028739/article/details/8504239 -->
I searched the internet for related errors and did not find a direct solution. Then I tried to download other versions of eclipse and update the SDK, it is useless to create a new project and copy the SRC and other files in the original project to the build in the new project. There is also a compiler NULL pointer error, that is to say, open the propertys of the project and remove the checksum before the compiler before the corresponding error (it is wrong that a large part of JS development encounters a JS compiler problem, I want to think about it without reason. Isn't it possible to use the android compiler to compile it after it is removed? Isn't it so difficult to understand why the compiler can be removed from JS.
When a visitor accesses a file on the Internet, the file with a strange suffix (not .png. XML) is added to the drawablefile, causing compilation failure. I had a whimsy, re-export the project from the svn library, and found that the project can be compiled. After division, we found that there was a hidden. SVN file in each folder in my project, which caused the above problem.
So I guess it may be an ADT problem, but ADT has updated the latest version, and after several reinstalls, It is fruitless. In the end, it may be a SVN problem, then I found that my SVN version is still the old version 1.6. After the version 1.7 is decisively upgraded, go back to my checkout project folder and Right-click a new option: "SVN upgrade working copy". Click to update it. After that, go to the project folder and find that there is no. SVN file in all subdirectories of the checkout file except the. SVN file in the root directory. I immediately open eclipse
Refresh + clean after a while, my project was compiled.
The root cause of this problem is that svn1.6 will generate a file under all the files in checkout. SVN files are used to manage version libraries. The new version of ADT enhances the identification of abnormal file types in project files. SVN returns a null pointer error. Therefore, when upgrading the development environment, please upgrade all at once.
<! -- Reprinted please indicate the source: Liu burn column http://blog.csdn.net/ft2028739/article/details/8504239 -->
--By the way. This problem has plagued me for a few days. I hope you can see this article.
From: http://blog.csdn.net/ft2028739/article/details/8504239