如何在android studio模拟器中运行离子应用程序? [英] How do I run an ionic app in android studio emulator?

查看:121
本文介绍了如何在android studio模拟器中运行离子应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是离子的新手,我想在android studio模拟器上运行我的应用程序。我确实参考了链接
https://developer.android.com/studio/运行/ index.html的。但我似乎不明白如何在模拟器上运行我的离子应用程序

I am new to ionic and I want to run my app on android studio emulator. I did refer the link https://developer.android.com/studio/run/index.html. But I do not seem to understand how to run my ionic app on emulator

推荐答案

首先确保您的Android Studio设置正确完成。如果想从头开始,请参考以下链接 - link1 link2 。在link2中,您也可以选择自己的操作系统。

First ensure that your Android Studio setup is correctly done. If want to do that from scratch refer these links - link1 and link2. In link2, you can choose your OS as well.

这个离子指南将帮助您正确设置离子项目。如果您完全遵循本指南,您将看到使用模拟平台运行发送等命令离子。

This ionic guide will help you setup ionic project correctly. If you follow this guide entirely, you will see the use of emulate, platform, run, serve, etc commands of ionic.

基本上你需要做的是首先在你的项目中添加一个android平台:

Basically what you need to do is first add an android platform to your project:

ionic cordova platform add android

然后使用以下方式模拟您的项目:

And then emulate your project using:

ionic cordova emulate android

这篇关于如何在android studio模拟器中运行离子应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆