Unity compiler error (can't find the offending line)

Hi, I am getting the following errors upon trying to port my casually typed unity java project to strong typed java for android:

Internal compiler error. See the console log for more information. output was:BCE0051: Operator ‘+’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘long’.
BCE0051: Operator ‘+’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘long’.
BCE0051: Operator ‘+’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘long’.
BCE0051: Operator ‘-’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘int’.
BCE0051: Operator ‘-’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘int’.
BCE0051: Operator ‘-’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘int’.
BCE0051: Operator ‘-’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘int’.

I have had a look at the log, and there’s no mention of where the offending lines are. If anyone knows how I can find the locations of these errors please help.

Did you add #pragma strict to your scripts?

http://docs.unity3d.com/Manual/android-unsupported.html

Thanks for this, adding #pragma strict didn’t make any difference to the Android compilation, but gave me the idea of switching back to web build, adding #pragma strict to each script one script at a time then recompiling, and in so doing I was able to work out which scripts the errors were in.

It shouldn’t be too hard to now work out the line by uncommenting the bodies of functions one at a time.