How to create a signed and unsigned working .apk using cordova?

前端 未结 2 1112
夕颜
夕颜 2021-01-16 09:11

I am trying to create an .apk file for my mobile using cordova (Android) platform on ubuntu 14.04.

for unsigned i used command

$ cordova build --re         


        
2条回答
  •  醉梦人生
    2021-01-16 09:42

    For you to be able to install the unsigned package in your device, you need to allow installation from unknown sources. It can be done in Settings -> General (tab) -> Security where you need to check the Unknown sources check box. After that the install should work.

    If you want to sign your application to be deployable to for example Play store, you need to refer to Android tutorial on that subject. you can also find steps for this from Stack Overflow. Once you have signed your .apk, you don't need to allow the unknown sources anymore.

提交回复
热议问题