title: Signing Android application using ANT
body: <p>A few similar questions have been asked about this before but I haven't found an answer I can use. Basically I am trying to sign an Android app using ANT.</p>
  
  <p>I have undertaken all the steps necessary (i.e. creating keystore in CLI, editing project.properties file as I cannot find the ant.properites file) and then run "ant release" in CLI and I get the following error which I don't get as I have created a keystore several times now and when the prompt asks me to make my alias password the same as the keystore, i say "yeah why not" and press the enter button.</p>
  
  <pre><code>BUILD FAILED
  /usr/local/Cellar/android-sdk/22.6.2/tools/ant/build.xml:1139: The following error occurred while executing this line:
  /usr/local/Cellar/android-sdk/22.6.2/tools/ant/build.xml:1151: Signing key speakandroid not found
  </code></pre>
  
  <p>I don't need to edit my build.xml file do I? I think maybe not being able to edit the ant.properties file has something to do with it.</p>
  
  <p>Update: I have made the ant.properties file with the suggestions from @Nick. I also followed these steps to make another keystore in the appName/platforms/android directory:</p>
  
  <pre><code>keytool -genkey -v -keystore speak.keystore
  -alias speakAndroid -keyalg RSA -keysize 2048 -validity 10000
  </code></pre>
  
  <p>As usual, I get prompted for my name and location details. Then it asks me if I want the  password to be the same as the keystore (I gather this is the alias password/signing key?). I have set it to be a different password.</p>
  
  <p>Within my ant.properties file I have inserted the following:</p>
  
  <pre><code>key.store=/Users/Coolwebs/Desktop/phonegap-projects/speakAndroid/platforms/android/speak.keystore
  key.alias=speakAndroid
  key.store.password=myPassword81
  key.alias.password=speakApp
  </code></pre>
  
  <p>Error comes up and still says that it cannot find the signing key for speakandroid alias (scratches head). I know the ant.properties file is doing its job because I have tested it be removing the passwords and seeing what ant in CLI does. The passwords are definitely right. Maybe it's because I have made "dirty" automatic debug versions in the past for beta testing, I really don't know.</p>