How can I install my ionic app on my android phone?

一个人想着一个人 提交于 2019-12-24 18:35:39

问题


I'm trying to install my ionic app on my android phone. I tried

install my ionic app on my android phone

The app ran on my phone, but when I ran the same command to run a different app, the app was replaced on my mobile. How can I keep both? I don't intend to modify any of these apps, they are ready. I tried these commands as well:

ionic cordova build android --prod --release

and

ionic cordova run android --prod --release

I got this error message:

[ERROR] An error occurred while running cordova run android --release (exit code 1)


回答1:


By default, it will overwrite the previous version. You can keep the both app using below way:

Check the config.xml file, and change the id of the app.

<widget id="new.app.id" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

Now, it will be considered as a different app and will not replace the previous one.



来源:https://stackoverflow.com/questions/48944036/how-can-i-install-my-ionic-app-on-my-android-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!