抱歉,如果有任何不便,请见谅。我对Ionic和Android编程都很陌生。
我的问题是,在模拟的Android虚拟设备上看不到我的应用程序(教程中的默认应用程序)。在运行“ionic emulate android”之后,它只显示了一个基本的股票Android手机。因此,我认为该应用程序未安装在模拟器上。
它构建了apk文件,但似乎没有执行任何操作。 我认为我已经正确安装了所有内容:
我的问题是,在模拟的Android虚拟设备上看不到我的应用程序(教程中的默认应用程序)。在运行“ionic emulate android”之后,它只显示了一个基本的股票Android手机。因此,我认为该应用程序未安装在模拟器上。
它构建了apk文件,但似乎没有执行任何操作。 我认为我已经正确安装了所有内容:
> 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
我希望您能帮助我,我只想开始教程 :)
问候,Duc
编辑:
I finally managed to install the apk manually to the emulated device using this command:
adb -s <your emulator> install </your/apk/path>
However installing it manually is very inconvenient and annoying. Anyone has a solution for this?
ionic emulate --target=avdName android
命令,其中 avdName 是 AVD 管理器中的虚拟设备名称。@D.Phi - Mikhailionic cordova emulate android
。 - Sir Mbuki