This device type does not match the module profile. Error while Deploying HAP

Viewed 125

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"?

1 Answers

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.

Related