How to build apk using Phonegap Cli

I create apk with clg phonegap, but the problem is that when I try to install apk with an Android phone, get Parse Error "There is a problem parsing the package"

What am I trying to build apk

1) phonegap create my-app com.example.myapp my-app

2) phonegap platform add android

on the way /path/to/myproject/platforms/android/cordovato execute the commandbuild --release

I get apk in path/myapp/platforms/android/build/outputs/apk/android-release-unsigned.apk

I tried to install this apk on my phone, getting an error Parse Error "There is a problem parsing the package"

As I browse the network, this may be a sign / key problem, I found some solutions

first command not working keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000get error

'keytool' is not recognized as an internal or external command,
operable program or batch file.

Secondly, this is for creating online telephony , but I need to create apk with cli.

It is also not suitable for me.

Can someone help me solve this problem? Thanks in advance for your help.

+4
2

CLI dev, phonegap build android --debug --device. - . , build --release. android-release-unsigned.apk, .

https://developer.android.com/tools/publishing/app-signing.html

+4

keykool cmd

0

All Articles