I have an Ionic (1.6.4) project with the Android platform that had an ant.properties file with the following:
key.store=mykeystore
key.alias=myalias
key.store.password=mypass1
key.alias.password=mypass2
Previously, I could run ionic build --release and it would build the unsigned apk, then sign it and produce another apk.
Recently, I needed to add the org.apache.cordova.splashscreen plugin which complained about my older version of Cordova, so I upgraded to 5.2.0 from 1.5.0. That, in turn, required I update my Android SDK to get Android 22. The Cordova build process seems to run fine.
[...all the previous steps...]
:packageRelease UP-TO-DATE
:assembleRelease
:cdvBuildRelease
BUILD SUCCESSFUL
However, Ionic now only produces an unsigned release apk.
Any suggestions on what could be causing the problem? Is there a log file I can check that might give me a clue? I know that even before when it worked, if the keystore was completely missing, it would just not sign it and pretend everything was fine (no error), so I thought maybe something similar was happening here and it was just suppressing an error.
Version Details:
cordova -v // 5.2.0
ionic -v // 1.6.4
node -v // v0.12.7
npm -v // 2.13.5
ionic.js // 1.0.1
Things I already tried:
- ant.properties and keystore are both still there
cordova platform upgrade androidran successfully- in ant.properties, pointing to keystore using an absolute path, relative path, and simply putting it directly in platforms/android without a path
- both
ionicandcordovacommands build --release androidandbuild --release