I\'m trying run a test with JUnit 4 and Robolectric on Eclipse but all time I receive this error:
Invalid layout of java.lang.String at value # # A fatal err
Same issue encountered to me as well and reason was I added main(String s[]) method in my android project.
So just remove main(String s[]) method from project and run as Android Application.