如何停止离线cordova运行android命令删除设备上的现有离子应用程序

问题描述 投票:1回答:1

我是论坛的新手,需要有关在真实设备上运行/安装ionic 3 app的帮助。

  1. 这个命令:离子cordova运行android(在我的情况下)将删除设备上安装的现有离子应用程序,即使应用程序名称不同。
  2. 我尝试使用离子cordova运行android --prod --release,但结果是相同的,即只有一个离子应用程序将安装在Android设备上听起来不对。
  3. 有没有办法防止这种情况发生?任何选择?下面是我的package.json文件: "dependencies": { "@angular/common": "5.0.3", "@angular/compiler": "5.0.3", "@angular/compiler-cli": "5.0.3", "@angular/core": "5.0.3", "@angular/forms": "5.0.3", "@angular/http": "5.0.3", "@angular/platform-browser": "5.0.3", "@angular/platform-browser-dynamic": "5.0.3", "@ionic-native/core": "4.4.0", "@ionic-native/splash-screen": "4.4.0", "@ionic-native/status-bar": "4.4.0", "@ionic/pro": "1.0.16", "@ionic/storage": "2.1.3", "cordova-android": "6.3.0", "cordova-plugin-device": "^1.1.4", "cordova-plugin-ionic-webview": "^1.1.16", "cordova-plugin-splashscreen": "^4.0.3", "cordova-plugin-whitelist": "^1.3.1", "ionic-angular": "3.9.2", "ionic-plugin-keyboard": "^2.2.1", "ionicons": "3.0.0", "rxjs": "5.5.2", "sw-toolbox": "3.6.0", "zone.js": "0.8.18" },
ionic-framework
1个回答
0
投票

你有没有改变该应用程序的包名?当Apps的包名称相同时,会发生此问题。

© www.soinside.com 2019 - 2024. All rights reserved.