Apache Cordova - Visual Studio 2015 - Failed to create signed apk

An Android package error must be signed during debugging using the Release configuration. To configure your Android signature, follow the instructions at http://go.microsoft.com/fwlink/?LinkID=613579 BlankCordovaApp4

key.store=E:\key.keystore key.alias=asdfgh key.store.password=asdfgh key.alias.password=asdfgh 

These are the following values ​​specified in the ant.properties files.

 keytool -genkey -v -keystore E:\key.keystore -alias asdfgh -keyalg RSA -keysize 2048 -validity 1000 

I tried adding another slash for key.store, like this

 key.store=E:\\key.keystore 

During assembly, I received the following information

 'keystore' and 'alias' need to be specified to generate a signed archive. 

I entered the data in res -> native -> android -> ant.properties I tried to install this apk on my mobile device and I got the error message "Install failed"

 Error code -102 
+1
source share
2 answers

I need to add these key stores and passwords in build.json

+1
source

first u goto inside the bin in java, where the .copy path is installed on your system, it can be like C: \ Program Files \ Java \ jdk1.8.0_101 \ bin, and then run the command to create the key on the command line. After entering some details u will get the key. http://www.tutorialspoint.com/phonegap/phonegap_app_contents.htm then fill in the data entered when creating the key in build.json, as shown below. The problem associated with the key will be resolved.

 "android": { "release": { "keystore": "my-release-key.keystore", "storePassword": "nidhin", "alias": "nidhin", "password": "nidhin", "keystoreType": "" } } 
0
source

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


All Articles