Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run Roboletric on windows: java.lang.NoSuchMethodException: android.os.Looper.<init>(boolean) #15

Closed
andr3medeiros opened this issue Apr 15, 2015 · 2 comments

Comments

@andr3medeiros
Copy link

I don't know if this issue happens only at windows, but as I just run the the project as it is, and got the issue plus, no other related issue was filed, I guess it could be.

I just ran RobolectricTest (right click) and got:

 java.lang.RuntimeException: java.lang.NoSuchMethodException: android.os.Looper.<init>(boolean)
    at org.robolectric.util.ReflectionHelpers.callConstructor(ReflectionHelpers.java:233)
    at org.robolectric.shadows.ShadowLooper.createLooper(ShadowLooper.java:43)
    at org.robolectric.shadows.ShadowLooper.access$000(ShadowLooper.java:25)
    at org.robolectric.shadows.ShadowLooper$1.create(ShadowLooper.java:37) ... 
@andr3medeiros
Copy link
Author

I just found out. In my maven settings.xml I added (as specified in maven site):

<localRepository>${user.home}/.m2/repository</localRepository>

After remove it, Roboletric worked fine.

@nenick
Copy link
Owner

nenick commented Apr 15, 2015

Great, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants