Ionic toturial for building a release.apk

Do you already have the app installed on your phone from a previous version? This can cause the app to crash because of a INSTALL_FAILED_VERSION_DOWNGRADE error

I donā€™t know if anybody said but IONIC recommends removing the cordova-plugin-console.
Hereā€™s the hints -> https://ionicframework.com/docs/guide/publishing.html

1 Like

Where (path) should I copy these files?

Any ionic 2 guy wondering here, it do not work for ionic 2. i just found another guide for ionic 2 after trying this one. here is that guideā€™s link

awesome, itā€™s work also for me! thanks

only create a file release-signing.properties on platforms/android/ with these content:

key.store=YourApp.keystore
key.store.password=
key.alias=YourApp
key.alias.password=

What is alias can you tell me with example.

Iā€™m trying to run the command

ionic build android --release

But error occurring saying that

  • What went wrong:
    Execution failed for task ā€˜:packageReleaseā€™.

com.android.ide.common.signing.KeytoolException: Failed to read key MyApp from store ā€œD:\Mujib\ionic\MyApp\platforms\android\MyApp.keystoreā€: No key with alias ā€˜MyAppā€™ found in keystore D:\Mujib\ionic\MyApp\platforms\android\MyApp.keystore

Please let me know what I have done wrong

Youā€™ll need a key for you app: keytool -genkey -v -keystore MyApp.keystore -alias MyApp -keyalg RSA -keysize 2048 -validity 10000

@mohitsaxena, I am also getting this same error when I try to install the apk file in mobile. Please let me know if you get solution for it.

Anybody please guide us fix this error. Thanks in advance.

please refer this website

plz tell me how to generate release SHA-1 for google loginā€¦Iā€™m getting error 10ā€¦plz help me

as far as am concern i will recommend build.phonegap.com for you to sign your app it is easy and fast and also use keystore explorer to generate the keypairs

noo it limits your app to a certain size and is incredibly slow. Once you configure your release process right making a release isnā€™t hard at all and will save you a bunch of itme.