Build android --prod --release error with latest cli


#1
  • Before updating to ionic@latest, I was building this way :

ionic build android --prod --release --keystore=“plus2malongo.keystore” --storePassword=“kataru” --password=“kataru”`

During the build, I was asked again my two passwords (why??) in a popover, and it was OK

  • I generated a new blank project, pasted my keystore file and release.signing.properties in the platform/android folder, then

ionic cordova build android --prod --release --keystore=“plus2malongo.keystore” --storePassword=“kataru” --password=“kataru”`

Now I am not asked my passwords, but there is an error :
Keystore was tampered with, or password was incorrect

What is the problem?? Is it in my release.signing.properties file :

 storeFile=plus2malongo.keystore
keyAlias=alias_name

#2

Here is a little workaround: How to automatically sign android applications with the Ionic CLI

But please create also an issue here: https://github.com/driftyco/ionic-cli


#3

Storing the passwords in the signing.properties file made the job. Thanks !
I’ll create the issue anyway.


#4

I would recommend changing that password, now that it’s been posted to the internet.