简体   繁体   中英

Error while running 'ionic run android'

I have a native android application which is currently available in Play store. Now i have developed same application with new features in Ionic 3. For testing purpose, i have debug version of native app installed in my device. Now when i run ionic run android command, it gives me error as below.

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Below is my config for both app.

Native App

  1. package-name : com.myapp
  2. version : 1.7
  3. versionCode : 7

Ionic App

  1. package-name : com.myapp
  2. version : 2.0
  3. versionCode : 8

Because i want to update same application, i have put package-name same for both application.

Note: I have debug version of native app installed in device, so it's not the case like i'm trying to update release version of native app with debug version of ionic app.

Another question is, can i access native application database in ionic application? If yes, then how?

you can keep both by changing app Id that is like com.example.appname

at the time of submission you can restore app id to original

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM