Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Testing in Android Unit Testing - Now Featuring Robolectric! Introducing Robolectric

Stephen Emery
Stephen Emery
14,384 Points

Solution to: Robolectric can't find Android Manifest

Mac and Linux users: There is a known issue that needs to be addressed so that tests can be located properly. Go to Run -> Edit Configurations. In the left side click the arrow next to: Android Junit. Select the test you are running Robolectric with. In the center look for "Working Directory". If it is empty, paste in: $MODULE_DIR$

This should make the error go away.

5 Answers

Thanks a lot, It could also work in windows.

Thanks! I had the same problem on windows.

thanks ))