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!
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
Stephen Emery14,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.
tianyang zhong3,614 Points
Thanks a lot, It could also work in windows.
Laurie Wu709 Points
Thanks! I had the same problem on windows.
Maria Fedoseev1,677 Points
Nice! it worked for me on a Mac.