问题
I'm developing an Android app using Huawei's Push
service. I have installed DevEco IDE
plugin within Android Studio. But I don't have any Huawei
device to test. So my question is that there is any Huawei's Android phone emulator or not for Windows PC. So, I can test and debug app. Thanks in advance.
回答1:
Huawei provides cloud debugging functionality for Huawei developers as a free service.
If you use Huawei SDKs, you should have Huawei Developer Account. Just need to login Huawei developer console and follow below instruction;
Updated Link https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-clouddebug-realtimedebug
This functionality is really simple to use, The cloud debugging function allows for remote debugging on real devices. In the debugging process, you can view device information, upload and install your APK to the remote devices, obtain operation logs, and save the logs to your local computer for analysis.
回答2:
If your app depends on any Hardware/Software specific service of Huawei device, using an emulator won't work. Also, Android Studio provides Google's generic Stock image so there's no way to create an emulator with EMUI (Huawei's Custom OS).
Fortunately, Google has Firebase Test Lab where you can test on real (5 tests/day) / virtual (10 tests/day) devices for free. Or you may try a 3rd party emulator like Genymotion
来源:https://stackoverflow.com/questions/58692876/how-to-create-huawei-android-emulator