小编D. *_*Phi的帖子

使用'ionic emulate android'命令时,Android模拟器无法安装应用程序

我是Ionic和Android编程的新手,所以如果有任何不便,我很抱歉.

我的问题是我无法在模拟的android虚拟设备上看到我的应用程序(教程中的默认应用程序).它只是在我运行后显示一个股票Android手机ionic emulate 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
Run Code Online (Sandbox Code Playgroud)

我希望你能帮助我,只是想让教程继续:)

迎接,公爵

编辑:

我终于设法使用此命令手动将apk安装到模拟设备:

 adb -s <your emulator> install </your/apk/path>
Run Code Online (Sandbox Code Playgroud)

然而,手动安装它是非常不方便和烦人的.有人有解决方案吗?

ubuntu android cordova ionic-framework

5
推荐指数
1
解决办法
8858
查看次数

标签 统计

android ×1

cordova ×1

ionic-framework ×1

ubuntu ×1