title: How to Build apk with Phonegap Cli
body: <p>I Build a apk with phonegap cli, but problem is when I try to install apk with android phone get a <code>Parse Error "There is a problem parsing the package"</code></p>
  
  <p>What I try to build apk </p>
  
  <p>1)phonegap <code>create my-app com.example.myapp my-app</code><br></p>
  
  <p>2)<code>phonegap platform add android</code></p>
  
  <p>at path <code>/path/to/myproject/platforms/android/cordova</code> run command <code>build --release</code></p>
  
  <p>I get apk at <code>path/myapp/platforms/android/build/outputs/apk/android-release-unsigned.apk</code></p>
  
  <p>I tried to install this apk to my phone get error <code>Parse Error "There is a problem parsing the package</code>"</p>
  
  <p>As I search over net this may be problem with sign/key, I found <a href="http://docs.build.phonegap.com/en_US/signing_signing-android.md.html" rel="noreferrer">some solutions</a><br></p>
  
  <p>first command not work <code>keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000</code> get error </p>
  
  <pre><code>'keytool' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>Secondly <a href="http://developer.android.com/tools/publishing/app-signing.html" rel="noreferrer">this is for online phone build</a> but I need to create apk with cli.</p>
  
  <p>This also does not suit to me.</p>
  
  <p>Can anyone help me to resolve this issue 
  Thanks in advance for help.</p>