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

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

问题描述

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

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 设置正确完成.如果想从头开始,请参考这些链接 - link1link2.在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.

ionic 指南将帮助您正确设置 ionic 项目.如果您完全遵循本指南,您将看到 emulateplatformrunserve 等的使用离子的命令.

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.

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

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 模拟器中运行 ionic 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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