Qt for HarmonyOS/Local Emulator Configuration: Difference between revisions
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
* The emulator name passed to<code>-start</code>must match the device name configured in Device Manager. | * The emulator name passed to<code>-start</code>must match the device name configured in Device Manager. | ||
* Any supported emulator from DevEco Studio's device list can be used — replace<code>"Pura 90"</code>with the desired device name. | * Any supported emulator from DevEco Studio's device list can be used — replace<code>"Pura 90"</code>with the desired device name. | ||
* | * <nowiki>[[Category:Qt for HarmonyOS]]</nowiki> | ||
Revision as of 02:31, 1 June 2026
Scenario
Initialize the "Phone" device type "Pura 90" in a local directory (e.g.
/Volumes/MacintoshExtSSD/DevEcoEmulator), and start it using command-line tools.
Prerequisites
- DevEco Studio installed
- Sufficient disk space at the target emulator location
Initialize the Emulator
- Open DevEco Studio.
- Open Device Manager.
- Edit Local Emulator Location to set the emulator storage path (e.g.).
/Volumes/MacintoshExtSSD/DevEcoEmulator
- Find the device: Phone → Pura 90.
- Note: You may select any supported emulator available in DevEco Studio. "Pura 90" is used here as an example.
- Click the Download button in the Actions column, then wait for the emulator to download and initialize.
Run the Emulator via Command Line
Test Method
- Close DevEco Studio completely.
- Disable the network connection on your machine.
- Run the following command in a terminal:
/Applications/DevEco-Studio.app/Contents/tools/emulator/Emulator \
-start "Pura 90" \
-instancePath /Volumes/MacintoshExtSSD/DevEcoEmulator/Closing DevEco Studio and disabling the network ensures the emulator launches independently from the IDE and confirms it can run fully offline using only the locally downloaded resources.
Notes
- Replace thevalue with your own emulator storage path.
-instancePath
- The emulator name passed tomust match the device name configured in Device Manager.
-start
- Any supported emulator from DevEco Studio's device list can be used — replacewith the desired device name.
"Pura 90"
- [[Category:Qt for HarmonyOS]]