Eclipse升级ADT到22后从SVN checkout项目后编译出现Errors occurred during the build. errors running builder 'Android Pre Compiler' on project'我的项目名称' java.lang.Nul
Errors occurred during the build.
errors running builder 'Android Pre Compiler' on project'我的项目名称'
java.lang.NullPointerException.
出现这个错误是因为最新的ADT 对文件检查更加严谨了,1.6的svn checkout后会有.svn文件。导致编译不通过。需要升级一下eclipse 的 SVN 插件到最新版本1.8x。
Links for 1.8.x Release:
Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x
svn插件包下载: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Links for 1.6.x Release:
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
svn插件包下载: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Links for 1.4.x Release:
Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x
svn插件包下载: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
升级svn到最新版本1.8x后重新checkout 你的项目然后refresh+clean+build 后就恢复正常了。