Android emulator does not install the application when using the "ionic emulate android" command

I'm new to programming on Ionic and Android, so I'm sorry if there is any inconvenience.

My problem is that I do not see my application (the default application in the tutorial) on an emulated virtual Android device. It just shows the stock Android phone mainly after launching ionic emulate android . Therefore, I assume that the application was not installed on the emulator.

He builds apk but does nothing with it. I seem to have installed anythink correctly:

 > duc@duc-ThinkPad-T450s :~/myApp$ ionic info Your system information: > Cordova CLI: 6.0.0 Ionic Version: 1.2.4 Ionic CLI Version: 1.7.14 > Ionic App Lib Version: 0.7.0 OS: Distributor ID: Ubuntu Description: > Ubuntu 14.04.4 LTS Node Version: v4.4.1 

Hope you could help me, just wanted to get a tutorial :)

Cheers, Duke

Edit

I finally managed to install apk manually on the emulated device using this command:

  adb -s <your emulator> install </your/apk/path> 

However, installing it manually is very inconvenient and annoying. Does anyone have a solution for this?

+5
source share
2 answers

The problem is solved! You should write on the command line:

 android avd 

Then a menu appears and you have to create your own avd and then start it

Then you need to open a new terminal (ctrl + alt + t). Cd is on the right track for your application.

Now ionic emulate android should work.

+10
source

You can also use a third-party emulator like Genymotion (which works much faster).

Use ionic build android and just drag and drop the APK /platforms/android/build/outputs/apk/android-debug.apk into the Genymotion emulator.

enter image description here

+2
source

Source: https://habr.com/ru/post/1246090/


All Articles