如何在我的Android手机上安装我的离子应用程序? [英] How can I install my ionic app on my android phone?
问题描述
我正在尝试在我的Android手机上安装我的离子应用程序。我试过
I'm trying to install my ionic app on my android phone. I tried
在我的Android手机上安装我的离子应用程序
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
ionic cordova build android --prod --release
和
离子cordova运行android --prod --release
ionic cordova run android --prod --release
我收到此错误消息:
[ERROR] An运行cordova运行时发生错误android --release
(退出代码1)
[ERROR] An error occurred while running cordova run android --release (exit code 1)
推荐答案
默认情况下,它将覆盖以前的版本。您可以使用以下方式保留这两个应用程序:
By default, it will overwrite the previous version. You can keep the both app using below way:
检查 config.xml
文件,并更改<$应用程序的c $ c> id 。
<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.
这篇关于如何在我的Android手机上安装我的离子应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!