'ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: not installing on Android api level 23

I am currently working on developing hybrid app using ionic. At this moment everything works fine as expected when i try to run it in browser using ionic run and grunt serve.

But when i try to install app on mobile it gives me error like error installing on mobile Now this seems like issue of minSdkVersion and targetSdkVersion. Although i am sharing my config.xml so you can get clear idea.

I am having big trouble solving this problem. If you guys can point me in the right direction, that would be great help.

NOTE: please ask me if you need any extra information about anything.

SDK information SDK platform of api 21,23



Solution 1:[1]

You just need remove the old version of your app on device and reinstall again.

remember :

  1. Uninstall the program.
  2. Disable and enable USB debugging, in turn.
  3. Run "Cordova run Android" command.

Solution 2:[2]

Sometimes if you forget changing package name will conflict with the old app if still was installed on your device

But as first you can try to :

  • Disable and enable USB debugging, in turn.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Benzo