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
For me was the solution: Run -> Run Configurations... -> at tab Test click Select Preferred Launcher and select Use configuration specific settings with selection Android JUnit Test Launcher.
Delete all entries under JUnit (left column of Run Configurations dialog; RightMouse - Delete).
Then Run as -> JUnit Test and optionally select Use configuration specific settings with Android JUnit Test Launcher.