Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic App not installing in android device

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.

like image 207
Suraj Jeswara Avatar asked Mar 31 '17 03:03

Suraj Jeswara


People also ask

Why is my APK app not installed?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

How do I run an Ionic app on my real Android phone?

To run your app, all you have to do is enable USB debugging and Developer Mode on your Android device, then run ionic cordova run android --device from the command line. Enabling USB debugging and Developer Mode can vary between devices, but is easy to look up with a Google search.


1 Answers

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.
like image 116
Sampath Avatar answered Sep 23 '22 14:09

Sampath