Cordoba build -release Android Unsigned apk

I am trying to create my version of apk for its deployment in the Play Store. I execute this command

Sudo cordova build android --release

What generates me a file called Android-Release-Unsigned.apk

I tried many solutions like keystore creation

keytool -genkey -v -keystore key-name.keystore -alias alias-name -keyalg RSA -keysize 2048 -validity 10000

or the trick of creating an Ant.properties file, such as here , and none of them worked at all.

Any other possible solution for this? Cordoba Version - 5.1.1

+4
source share
3 answers

If you have a keystore file, this should work.

You may also need to remove the console plugin if the same apk goes directly to production.

In cordova 6.2.0

cd cordova/ #change to root cordova folder
platforms/android/cordova/clean #clean if you want
cordova build android --release -- --keystore="/path/to/keystore" --storePassword=password --alias=alias_name #password will be prompted if you have any
+1
source
0

Create a file with the name release-signing.propertiesand put in the folder APPFOLDER \ platform \ android Cordoba, which used ant.properties, but now ignores this file.

File Content: edit after = for all but line 2

storeFile=C:/yourlocation/app.keystore
storeType=jks
keyAlias=aliasname
keyPassword=aliaspass
storePassword=password

Now running cordova build android --releaseshould create a signed version.

0
source

Source: https://habr.com/ru/post/1598947/


All Articles