如何在没有 Ionic serve 的情况下在我的设备上测试我的应用程序
How to test my app on my device without Ionic serve
我是 ionic 的新手,我刚刚完成了我的第一个应用程序,它在我的浏览器上运行完美,但我只想知道如何在我的 android 设备上 运行 它而不需要在我的 PC 上启动“ionic serve”,我的意思是我的应用程序目前可以在我的手机上运行,但只有当我 运行 在我的 PC 上使用“ionic serve”时,才有办法 运行需要那个。或者我遗漏了什么?
就像你在the docs中看到的那样:
To run your app, all you have to do is enable USB debugging and Developer Mode on your Android device, then run ionic cordova run android --device
from the command line.
This will produce a debug build of your app, both in terms of Android and Ionic’s code
Enabling USB debugging and Developer Mode can vary between devices, but is easy to look up with a Google search. You can also check out Enabling On-device Developer Options in the Android docs.
当您认为您的应用已准备好发布时,请查看 Production Builds 和 Sign Android APK 部分也来自 the docs.
我是 ionic 的新手,我刚刚完成了我的第一个应用程序,它在我的浏览器上运行完美,但我只想知道如何在我的 android 设备上 运行 它而不需要在我的 PC 上启动“ionic serve”,我的意思是我的应用程序目前可以在我的手机上运行,但只有当我 运行 在我的 PC 上使用“ionic serve”时,才有办法 运行需要那个。或者我遗漏了什么?
就像你在the docs中看到的那样:
To run your app, all you have to do is enable USB debugging and Developer Mode on your Android device, then run
ionic cordova run android --device
from the command line.This will produce a debug build of your app, both in terms of Android and Ionic’s code
Enabling USB debugging and Developer Mode can vary between devices, but is easy to look up with a Google search. You can also check out Enabling On-device Developer Options in the Android docs.
当您认为您的应用已准备好发布时,请查看 Production Builds 和 Sign Android APK 部分也来自 the docs.