Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Pre Compiler error?

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.

like image 321
Saurabh Bayani Avatar asked Jan 04 '13 11:01

Saurabh Bayani


3 Answers

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

like image 164
schmidiii Avatar answered Nov 20 '22 05:11

schmidiii


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
like image 36
Giorgos Kylafas Avatar answered Nov 20 '22 04:11

Giorgos Kylafas


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 .

like image 3
manpreet singh Avatar answered Nov 20 '22 04:11

manpreet singh