Android Pre Compiler error?
Solution 1
I believe you experience bug http://code.google.com/p/android/issues/detail?id=42051
Do you have any files with no extension in their name, e.g. README
?
Try adding an extension to the files, e.g. README
-> README.txt
.
Do you use Subversion? Try installing packages:
- Subversive SVN JDT Ignore Extensions
- Subversive SVN Team Provider
Solution 2
I think we suffered from the bug Giorgos Kylafas mentioned. Luckily Google released an update for the ADT on their Preview Channel as none of the other mentioned solutions helped me.
To Install the updates follow the instructions given in Comment #20 from tnorbye: http://code.google.com/p/android/issues/detail?id=42051#c20
This solved the Problem for me. Here s the DirectLink to the Preview Channel: http://tools.android.com/preview-channel
Solution 3
The problem also occurs when you have a referred a library project and you "Close" that project .
So you may try reopening any closed project in the workspace to which you might have referred .
Solution 4
By the way,
for those who don't want to install package and other things.. there is quick fix ....
Search for
svn
in your project folder and delete all folders named asSVN
(might be hidden).Search for
*.svn
and again delete all file of.svn
extensionImport your Project again.
IMPORTANT: I said this is quick solution if you are in hurry, This is not accurate & best solution. It will clear all records of your "svn" for your project.
If you don't know how to re-configure it again then install package mentioned above in Giorgos Kylafas and schmidiii 's answers , It is perfect solution
Related videos on Youtube
Saurabh Bayani
Updated on October 18, 2022Comments
-
Saurabh Bayani over 1 year
I am facing a very annoying problem. I wanted to use sliding menu in my project, after long and frustrating search i come to know that i have to update my eclipse + ADT to new one to import that library properly, and i got demo app running fine.
now i want to integrate it in my project, so i import my project in same workspace and i received following error after just importing it.
Errors occurred during the build. Errors running builder 'Android Pre Compiler' on project 'MyProject'. java.lang.NullPointerException
I been through many sites plus some questions like this or this but found nothing concrete. Also i tried different cases that are possible, but they are of no use.
so i am in middle of strange situation, that library cannot be import on old eclipse(Galileo + ADT v15) , and project can not be import on new eclipse(ADT Bundle eclipse + ADT v21).
somebody please help me on this.
-
Saurabh Bayani about 11 yearsWorking ! Thanks Buddy for giving idea that this is all related to "SVN"
-
arniotaki almost 10 yearsThank you! I was trying hours to find out what was going own. Thanks1!!