<p>The options for this command are listed in <a href="#options">Command-line
options for AVDs</a> at the bottom of this page. </p>
<h3 id="updating">Updating an AVD</h3>
<p>If, for any reason, the platform/add-on root folder has its name changed (maybe because the user has installed an update of the platform/add-on) then the AVD will not be able to load the system image that it is mapped to. In this case, the <code>android list targets</code> command will produce this output:
<pre>The following Android Virtual Devices could not be loaded:
Name: foo
Path: <path>/.android/avd/foo.avd
Error: Invalid value in image.sysdir. Run 'android update avd -n foo' </pre>
<p>To fix this error, use the <code>android update avd</code> command to recompute the path to the system images.</p>
<h3 id="deleting">Deleting an AVD</h3>
<p>You can use the android tool to delete an AVD. Here is the command usage:</p>
<pre>android delete avd -n <name> </pre>
<p>When you issue the command, the android tool looks for an AVD matching the
specified name deletes the AVD's directory and files. </p>
<h2 id="options">Command-line options for AVDs</h2>
<p>The table below lists the command-line options you can use with the
android tool. </p>
<table>
<tr>
<th width="15%">Action</th>
<th width="20%">Option</th>
<th width="30%">Description</th>
<th>Comments</th>
</tr>
<tr>
<td><code>list avds</code></td>
<td> </td>
<td>List all known AVDs, with name, path, target, and skin. </td>
<td> </td>
</tr>
<tr>
<td rowspan="6"><code>create avd</code></td>
<td><code>-n <name> or <br></code></td>
<td>The name for the AVD.</td>
<td>Required</td>
</tr>
<tr>
<td><code>-t <targetID></code></td>
<td>Target ID of the system image to use with the new AVD.</td>
<td>Required. To obtain a list of available targets, use <code>android list
targets</code>.</td>
</tr>
<tr>
<td><code>-c <path></code> or <br>
<code>-c <size>[K|M]</code></td>
<td>The path to the SD card image to use with this AVD or the size of a new SD
card image to create for this AVD.</td>
<td>Examples: <code>-c path/to/sdcard</code> or <code>-c 1000M</code></td>
</tr>
<tr>
<td><code>-f</code></td>
<td>Force creation of the AVD</td>
<td>By default, if the name of the AVD being created matches that of an
existing AVD, the android tool will not create the new AVD or overwrite
the existing AVD. If you specify the <code>-f</code> option, however, the
android tool will automatically overwrite any existing AVD that has the
same name as the new AVD. The files and data of the existing AVD are
deleted. </td>
</tr>
<tr>
<td><code>-p <path></code></td>
<td>Path to the location at which to create the directory for this AVD's
files.</td>
<td> </td>
</tr>
<tr>
<td><code>-s <name></code> or <br>
<code>-s <dimensions></code> </td>
<td>The skin to use for this AVD, identified by name or dimensions.</td>
<td>The android tool scans for a matching skin by name or dimension in the
<code>skins/</code> directory of the target referenced in the <code>-t