2

I've set up HUAWEI DevEco Studio with HarmonyOS SDK, but fail to launch a newly created project:

Screenshot

I'd suppose, that this might be a phone module, but I have tablet hardware.

How I can change that - or which modules are suitable for a "large screen"?

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
Martin Zeitler
  • 1
  • 19
  • 155
  • 216

1 Answers1

3

I've found it myself; the relevant configuration file is: entry/src/main/config.json.

"deviceType": ["phone"] should be "deviceType": ["tablet"]. One can even combine them: "deviceType": ["phone", "tablet"] (there seem to be Phone, Tablet, TV, Wearable, Car). Then it fails with INSTALL_FAILED_NO_BUNDLE_SIGNATURE, but this wasn't the question.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
  • Are you facing this while deploying to simulator? @Martin, In case you use hardware (real device) you have to sign your hap before deploying. For signing refer this blog - https://forums.developer.huawei.com/forumPortal/en/topic/0201556815764790264 – Gowtham GS Aug 04 '21 at 04:35
  • @GowthamGS I can run on hardware, when I first run `adb kill-server` (to close previous connections). The local emulator says that it is "Lite" and refuses to boot. – Martin Zeitler Aug 05 '21 at 08:38