Ionic App not installing in android device

20,672

Solution 1

You can follow the steps which are mentioned in the official doc below.

Deploying to a Device

But for me, it didn't work.So I just manually did that as shown below.

  1. ionic cordova run android --device

  2. Plugged device to the PC using USB

  3. Copy the android-debug.apk file to the device (apk path:.. \platforms\android\build\outputs\apk)

  4. After that, You have to enable below setting on your Android device

settings --> general tab --> security --> unknown sources (enabled this)

  1. After that just double-clicked the android-debug.apk from the location which you have copied.Then your app will be installed on your device.That is it.You can use your app on real device now.

Solution 2

The most probable reason I can think of is that your application is not signed. As Sampath mentioned try to build a debug version and not release version of your application and then install it on your device. You can can use 'ionic run android' and copy/paste manually the output android-debug.apk file to your device.

Solution 3

In the config.xml, in the 2nd line, there is a tag called widget. You have to give a unique id for that. If there is another ionic app installed with same widget id, your device will not allow you to install another app with the same id.

enter image description here

Share:
20,672

Related videos on Youtube

Suraj Jeswara
Author by

Suraj Jeswara

Updated on May 25, 2020

Comments

  • Suraj Jeswara
    Suraj Jeswara almost 4 years

    I am a newbie in Ionic. I just made a simple app in Ionic that ran well on browser. So, I converted it into an .apk file using Android studios that generated an android-release-unsigned.apk file. I transfered it to my device and on trying to install it I encountered that it was not being installed. I am not able to figure out the cause. Need some assistance.

  • Suraj Jeswara
    Suraj Jeswara about 7 years
    thank you senior.. It worked.. its deployed well on my device.
  • SHUBHASIS MAHATA
    SHUBHASIS MAHATA about 4 years
    i'm not say about run / debugging at mobile... i want to build release