1

Just installed Android Studio to give it a try. I'm trying to create a test module for my application and, whatever the method I use, I always get the following error: "Error: No AndroidManifest.xml file found in the main project directory...".

Methods I use:

1) from Android Studio: New > Module > Test Module
2) from command line: android create test-project -m "main_path" -n "project_name" -p "test_path"

Any ideas on how to solve this?

Ecil
  • 1,009
  • 1
  • 13
  • 28

1 Answers1

3

Edit: As of 0.1.8 this is now supported in the IDE.

According to the documentation for the new build system a separate project is no longer needed, which implies that a separate module may not be either. That said, getting test working within the IDE is still problematic. I've posted an answer here that at least works for running tests from the command line.

Community
  • 1
  • 1
Chris
  • 504
  • 4
  • 6
  • Thanks for your reply, Chris. I'd rather run it from the IDE, but at least it works. Great tip. – Ecil Jun 04 '13 at 01:38