我是论坛的新手,需要有关在真实设备上运行/安装ionic 3 app的帮助。
此命令:离线cordova运行android(在我的情况下)将删除设备上安装的现有离子应用程序,即使应用程序名称不同。
我尝试使用离子cordova运行android --prod --release
,但结果是一样的,即只有一个离子应用程序将安装在Android设备上听起来不对。
有没有办法防止这种情况发生?任何选择?下面是我的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"
},
答案 0 :(得分:0)
您是否更改了该应用的包名?当应用程序的包名称相同时,会发生此问题。