1page.title=Signing Your Applications from Eclipse with ADT 2@jd:body 3 4<div id="qv-wrapper"> 5<div id="qv"> 6 7<h2>In this document</h2> 8 9<ol> 10<li><a href="#signing">Signing Your App for Release</a></li> 11</ol> 12 13<h2>See also</h2> 14 15<ol> 16<li><a href="{@docRoot}tools/publishing/app-signing.html">Signing Your Applications</a></li> 17</ol> 18 19</div> 20</div> 21 22 23<p>Android requires that all apps be digitally signed with a certificate before they can be 24installed. Android uses this certificate to identify the author of an app, and the certificate 25does not need to be signed by a certificate authority.</p> 26 27<p>This document provides detailed instructions about how to sign your apps in release mode with the 28ADT plugin for Eclipse. For information about how to obtain a certificate for signing your app, see 29<a href="{@docRoot}tools/publishing/app-signing.html">Signing Your Applications</a>. 30</p> 31 32 33<h2 id="signing">Signing Your App for Release</h2> 34 35<p>To sign your app for release with ADT, follow these steps:</p> 36 37<ol> 38<li>Select the project in the Package Explorer and select <strong>File</strong> > 39<strong>Export</strong>.</li> 40<li>On the <em>Export</em> window, select <strong>Export Android Application</strong> and click 41<strong>Next</strong>.</li> 42<li>On the <em>Export Android Application</em> window, select the project you want to sign and 43click <strong>Next</strong>.</li> 44<li> 45<p>On the next window, enter the location to create a keystore and a keystore password. If you 46already have a keystore, select <strong>Use existing keystore</strong>, enter your keystore's 47location and password, and go to step 6.</p> 48<img src="{@docRoot}images/tools/signadt3.png" alt="" 49 width="488" height="270" style="margin-top:15px"/> 50<p class="img-caption"><strong>Figure 6</strong>. Select a keystore in ADT.</p> 51</li> 52<li><p>On the next window, provide the required information as shown in figure 5.<p> 53<p>Your key should be valid for at least 25 years, so you can sign app updates with the same key 54through the lifespan of your app.</p> 55<img src="{@docRoot}images/tools/signadt4.png" alt="" 56 width="488" height="448" style="margin-top:15px"/> 57<p class="img-caption"><strong>Figure 7</strong>. Create a private key in ADT.</p> 58</li> 59<li><p>On the next window, select the location to export the signed APK.</p> 60<img src="{@docRoot}images/tools/signadt5.png" alt="" 61 width="488" height="217" style="margin-top:15px"/> 62<p class="img-caption"><strong>Figure 8</strong>. Export the signed APK in ADT.</p> 63</li> 64</ol> 65