因为需要升级了一下SDK版本,然后eclipse提示ADT要从目前的18升级到21,然后艰难的升级到21级,
升级后导入maven项目的时候总是弹出错误提示:Errors occurred during the build. Errors occurred during the build. Errors running builder 'Android Pre Compiler' on project'项目名称' java.lang.NullPointerException.
原因是使用SVN导致:
svn在checkout的所有文件的文件夹下都会生成一个.svn文件用于管理版本库,而新版的adt加强了对项目文件中的异常类型文件的识别,所以在遇到.svn时报了空指针的错误。
解决问题: 删除掉工程中所有的.svn目录,重新编译。