Can't run Roboletric on windows: java.lang.NoSuchMethodException: android.os.Looper.<init>(boolean) -
i want add support unit tests on existing android studio 1.1 project. followed this tutorial getting error:
java.lang.runtimeexception: java.lang.runtimeexception: java.lang.nosuchmethodexception: android.os.looper.<init>(boolean) @ org.robolectric.robolectrictestrunner$2.evaluate(robolectrictestrunner.java:228) @ org.junit.runners.parentrunner.runleaf(parentrunner.java:325) @ ...
i found this solution applies mac, , can't find similar way in windows.
i found out. in maven settings.xml added (as specified in maven site):
<localrepository>${user.home}/.m2/repository</localrepository>
after remove it, roboletric worked fine.
Comments
Post a Comment