After updating my Android sdk tools to v21.0.1 I keep getting the AndroidPreCompiler build error with a NullPointerException on every project. I can create a new project no problem but once i add in the files from the broken project it causes this error and none of my projects build.
Does anyone know why this would be? Maybe a problem with the latest sdk tools?
Any help is much appreciated.
I’ve once had exact same issue and it turned out to be related to this question: Android Pre Compiler error on 21.0.1 android sdk
The accepted answer posted there:
was the reason in my case. Try updating to the newer ADT if possible.