DEV Community

HarmonyOS
HarmonyOS

Posted on

[Sports Watch] [API 6] Sports Watch Installation Reports Error 34_ Internal Error

Read the original article:[Sports Watch] [API 6] Sports Watch Installation Reports Error 34_ Internal Error

Problem Description:

When installing the sport watch application, the installation fails with error code 34: Internal Error.

Problem Analysis:

The internal error during installation could be caused by several factors. The following aspects can be analyzed:

  1. Check the Size of JavaScript Files:
    Examine the size of the JavaScript files in the entry/build/intermediates/js/release/source/lite/assets/js/default/pages directory.For watch models like Fit2 and GT2 Pro, if the JavaScript files exceed 32 KB, it may lead to installation failure.For watch models like GT3 and Fit3, if the JavaScript files exceed 48 KB, it may also cause installation failure.Additionally, if the HAP (HarmonyOS Ability Package) is too large, close to 10 MB, it may also result in installation failure.

  2. Ensure that there are not two icons in the entry/src/main/resources/base/media directory.

  3. Verify that the label in the config.json file is not too long.

Written by Egemen Ayhan

Top comments (0)