Friday, June 29, 2012

[Solved]emulator: ERROR: You did not specify a virtual device name, and the system directory could not be found.

Problem: After building AOSP and trying to lunch the emulator, coming up with this error:
               emulator: ERROR: You did not specify a virtual device name, and the system directory could not be                            found. 

               If you are an Android SDK user, please use '@<name>' or '-avd <name>' 
               to start a given virtual device (see -help-avd for details). 

               Otherwise, follow the instructions in -help-disk-images to start the 
               emulator 

Solution: type ./emulator -help-disk-images, then you would know how to fix it.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hello where to put "./emulator -help-disk-images" I don't understand. I have this problem from 3 days and can't solve it pls help.

    ReplyDelete
    Replies
    1. find the directory where your "emulator" binary resides. It's been a long time and I don't remember the exact location. But it should be something like .../out/somepath/target/somepath/bin.

      Delete