score:84

Accepted answer

i always hate answering my own questions, but this is a genuine solution.

the 21.0.1 version of the adt tools has a bug that prevents a project building if you have any files without extensions in them. this is a particular problem for users (like me) using subversion with has extension-less files.

one recommended solution is to install these 'subversive' eclipse plugins (help > install new software > work with your eclipse version site > expand 'collaboration' > choose 'subversive svn jdt ignore extensions' and 'subversive svn team provider') but this didn't work for me (i'm on indigo, perhaps on juno it works).

the solution is to install the 21.1 preview version of the adt tools and sdk manager from google. clear instructions can be found here and you can read all the background add your voice to the angry mob of developers here.

score:-1

i encountered this problem recently and the solutions given above did not work for me. i did not have any files without extensions. it so happened that after adding a new project from existing code, there was a setup error that seems to have messed up the state of eclipse. after that, any project in the workspace that i tried to clean or build was giving the android pre-compiler error with the java.lang.nullpointerexception.

i found that the main.xml files inside /res directory was for some reason not being found, even though the file was very much there. solution was to close all open file perspectives in the eclipse java edit panel, close all projects, then open project and open the main xml file. after i did that, the pre-compiler problem went away.

score:0

another case: i closed the current project (with building error message), discarded the svn repository in use, recompile:

building error

i add the repository location:

building ok!

score:0

for solving this issue i need to run eclipse as administrator

score:1

i meet this error,and delete all .svn file, my project can't work,when process 55%

and i find this is an empty res dir in my project,i don't know how it coms,but when delete the empty res dir,my project workd,

so,you should check all your files in your project.

score:1

i was also facing the same issue, and wasted a lot of time fixing this, also the above given solutions doesn't work for me. i solved this problem by going to eclipse -> help -> check for updates, and then restarting eclipse after update finished.

score:1

if you have accidentally closed the library projects that are essential for running your project then just open them in eclipse. this error must vanish.

score:2

may be you have close 'appcompact_v7' library to create new file. this solved my problem by open it back

score:9

i also had the same problem and i realised that i had closed another project that was connected with the one i was building. once i opened it everything disappeared.

score:15

i just restarted eclipse and the problem got solved.

score:107

for those of you who don't want to install preview version of adt, there is a workaround described here.

  1. open properties of project in eclipse then resources -> resource filters.
  2. click the "add..." button -> check "exclude all", "files and folders", "all children". in the text entry box input ".svn" (without quotes).
  3. restart eclipse.

i had the same problem with .git folder, it worked like a charm.


Related Query

More Query from same tag