2

Followed the steps by Steven Anderson here Build android release apk on Phonegap 3.x CLI

I have an existing keystore created using eclipse for an Android cordova 2.4.0 project

I created the ant.properties file under /platforms/android with the following two entries

key.store=/Users/xxx/Documents/Android_Key_Store/myApp_Key_Store.keystore key.alias=myApp

Now when I give cordova build --release command I only get android-release-unsigned.apk it is not prompting me to enter the password for my keystore

Thanks in advance for your help

Community
  • 1
  • 1
joel
  • 747
  • 2
  • 9
  • 20

2 Answers2

1

Also add:

key.store.password=KeystorePWD
key.alias.password=AliasPWD

Use the plain text version of each password.

Dawson Loudon
  • 6,029
  • 2
  • 27
  • 31
  • same issue persists. Does it tell if I give wrong password or wrong path? Cause it seems the ant.properties file is getting ignored, every release build is a success irrespective of what I give in ant.properties. I installed ant using command brew install ant – joel May 07 '15 at 04:23
0

Following the steps mentioned in http://shallowsky.com/blog/programming/cordova-create-signed-app.html, was able to build signed apk in release mode.

Creating release-signing.properties was the important step. I use cordova 5.4.1 version

suman j
  • 6,710
  • 11
  • 58
  • 109