I stumbled across a strange thing when i was preparing an old project
for a friend. I isolated the code that triggers the bug down to one function.
The function does nothing special.. and i already have another version of it
that i posted some time ago here as a slightly optimized version.
Please take a look.. maybe i am looking to hard.. but i realy have no clue whats going on...

Add this activity to a project and try to compile.
For me it throws "Conversion to Dalvik format failed with error 2".
If you comment out the function "test" and just leave test2 you can compile.
So the bug lies within function "test".