[Sports Watch] [API 6] Sports Watch Installation Reports Error 34_ Internal Error
Source: Dev.to
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. Consider the following aspects:
JavaScript file size
- Examine the size of the JavaScript files in the
entry/build/intermediates/js/release/source/lite/assets/js/default/pagesdirectory.- For watch models like Fit2 and GT2 Pro, if the JavaScript files exceed 32 KB, installation may fail.
- For watch models like GT3 and Fit3, if the JavaScript files exceed 48 KB, installation may also fail.
- Additionally, if the HAP (HarmonyOS Ability Package) is close to 10 MB, it may result in installation failure.
Icon duplication
- Ensure that there are not two icons in the
entry/src/main/resources/base/mediadirectory.
Label length
- Verify that the
labelfield in theconfig.jsonfile is not excessively long.
Reference
Sports Watch – API 6 – Installation Reports Error 34 (Internal Error)