【问题标题】:How do i run my ionic android app on an emulator without installing/running the android studio?如何在不安装/运行 android studio 的情况下在模拟器上运行我的 ionic android 应用程序?
【发布时间】:2022-01-04 20:25:55
【问题描述】:

Android Studio 太重,拖慢了我的电脑进行开发。我是一名离子开发人员,我只需要 android 模拟器就可以为我的移动应用程序提供更好的测试环境。我只使用 android studio,因为我正在尝试按照此视频中的步骤设置虚拟模拟器 Ionic 3 Tutorial #16 Run app on Android Emulator

我想知道是否有另一种方法可以在真实或虚拟的 android 模拟器上测试和运行我的 ionic 应用程序。我想知道我是否可以通过我的 vs 代码或更轻的 IDE 运行模拟器

【问题讨论】:

    标签: android angular ionic-framework android-emulator emulation


    【解决方案1】:

    如果您已经设置了模拟器,则在 Visual Studio Code 中执行“ionic cordova run android”就足够了。

    VSCode 检查连接的物理设备。如果没有,它会带上模拟器。

    或者您可以使用其他模拟器,例如 Droid4X 或 BlueStacks。 => 构建 APK(ionic cordova build android)并将其安装在其中之一上。

    【讨论】:

      【解决方案2】:

      一个选项可能是使用ionic serve 在浏览器中运行它,然后在控制台中激活Toggle device toolbar 不是android 模拟器,但可能对移动调试有用。

      【讨论】:

        猜你喜欢
        • 2017-07-31
        • 1970-01-01
        • 1970-01-01
        • 2021-12-15
        • 1970-01-01
        • 2017-07-31
        • 2016-03-20
        • 2018-10-04
        • 2021-01-19
        相关资源
        最近更新 更多