From 9cc257e1981149825ecbf1f0767a40085cc50497 Mon Sep 17 00:00:00 2001 From: wangweiyuan Date: Thu, 3 Jul 2025 16:52:31 +0800 Subject: [PATCH] FIX compile Signed-off-by: wangweiyuan --- code/DocsSample/ArkUISample/Animation/build-profile.json5 | 5 +++-- .../ArkUISample/Animation/entry/src/main/module.json5 | 2 +- .../ArkUISample/Animation/hvigor/hvigor-config.json5 | 2 +- code/DocsSample/ArkUISample/Animation/oh-package.json5 | 2 +- code/DocsSample/ArkUISample/BindSheet/build-profile.json5 | 5 +++-- .../ArkUISample/BindSheet/entry/src/main/module.json5 | 2 +- .../ArkUISample/BindSheet/hvigor/hvigor-config.json5 | 2 +- code/DocsSample/ArkUISample/BindSheet/oh-package.json5 | 2 +- code/DocsSample/ArkUISample/Navigation/build-profile.json5 | 5 +++-- .../ArkUISample/Navigation/entry/src/main/module.json5 | 2 +- 10 files changed, 16 insertions(+), 13 deletions(-) diff --git a/code/DocsSample/ArkUISample/Animation/build-profile.json5 b/code/DocsSample/ArkUISample/Animation/build-profile.json5 index e1244ceecb..a836643694 100644 --- a/code/DocsSample/ArkUISample/Animation/build-profile.json5 +++ b/code/DocsSample/ArkUISample/Animation/build-profile.json5 @@ -19,8 +19,9 @@ { "name": "default", "signingConfig": "default", - "targetSdkVersion": "20", - "compatibleSdkVersion": "20", + "targetSdkVersion": 20, + "compileSdkVersion": 20, + "compatibleSdkVersion": 20, "runtimeOS": "OpenHarmony", "buildOption": { "strictMode": { diff --git a/code/DocsSample/ArkUISample/Animation/entry/src/main/module.json5 b/code/DocsSample/ArkUISample/Animation/entry/src/main/module.json5 index 196e6b3978..b4ddd8384d 100644 --- a/code/DocsSample/ArkUISample/Animation/entry/src/main/module.json5 +++ b/code/DocsSample/ArkUISample/Animation/entry/src/main/module.json5 @@ -19,7 +19,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone" + "default" ], "deliveryWithInstall": true, "installationFree": false, diff --git a/code/DocsSample/ArkUISample/Animation/hvigor/hvigor-config.json5 b/code/DocsSample/ArkUISample/Animation/hvigor/hvigor-config.json5 index a3a86df0cd..2d5b53c87b 100644 --- a/code/DocsSample/ArkUISample/Animation/hvigor/hvigor-config.json5 +++ b/code/DocsSample/ArkUISample/Animation/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.1.0", "dependencies": { }, "execution": { diff --git a/code/DocsSample/ArkUISample/Animation/oh-package.json5 b/code/DocsSample/ArkUISample/Animation/oh-package.json5 index 41b8b63948..b56a095f38 100644 --- a/code/DocsSample/ArkUISample/Animation/oh-package.json5 +++ b/code/DocsSample/ArkUISample/Animation/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.1.0", "description": "Please describe the basic information.", "dependencies": { }, diff --git a/code/DocsSample/ArkUISample/BindSheet/build-profile.json5 b/code/DocsSample/ArkUISample/BindSheet/build-profile.json5 index e1244ceecb..a836643694 100644 --- a/code/DocsSample/ArkUISample/BindSheet/build-profile.json5 +++ b/code/DocsSample/ArkUISample/BindSheet/build-profile.json5 @@ -19,8 +19,9 @@ { "name": "default", "signingConfig": "default", - "targetSdkVersion": "20", - "compatibleSdkVersion": "20", + "targetSdkVersion": 20, + "compileSdkVersion": 20, + "compatibleSdkVersion": 20, "runtimeOS": "OpenHarmony", "buildOption": { "strictMode": { diff --git a/code/DocsSample/ArkUISample/BindSheet/entry/src/main/module.json5 b/code/DocsSample/ArkUISample/BindSheet/entry/src/main/module.json5 index 196e6b3978..b4ddd8384d 100644 --- a/code/DocsSample/ArkUISample/BindSheet/entry/src/main/module.json5 +++ b/code/DocsSample/ArkUISample/BindSheet/entry/src/main/module.json5 @@ -19,7 +19,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone" + "default" ], "deliveryWithInstall": true, "installationFree": false, diff --git a/code/DocsSample/ArkUISample/BindSheet/hvigor/hvigor-config.json5 b/code/DocsSample/ArkUISample/BindSheet/hvigor/hvigor-config.json5 index a3a86df0cd..2d5b53c87b 100644 --- a/code/DocsSample/ArkUISample/BindSheet/hvigor/hvigor-config.json5 +++ b/code/DocsSample/ArkUISample/BindSheet/hvigor/hvigor-config.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.1.0", "dependencies": { }, "execution": { diff --git a/code/DocsSample/ArkUISample/BindSheet/oh-package.json5 b/code/DocsSample/ArkUISample/BindSheet/oh-package.json5 index 41b8b63948..b56a095f38 100644 --- a/code/DocsSample/ArkUISample/BindSheet/oh-package.json5 +++ b/code/DocsSample/ArkUISample/BindSheet/oh-package.json5 @@ -13,7 +13,7 @@ * limitations under the License. */ { - "modelVersion": "6.0.0", + "modelVersion": "5.1.0", "description": "Please describe the basic information.", "dependencies": { }, diff --git a/code/DocsSample/ArkUISample/Navigation/build-profile.json5 b/code/DocsSample/ArkUISample/Navigation/build-profile.json5 index e1244ceecb..a836643694 100644 --- a/code/DocsSample/ArkUISample/Navigation/build-profile.json5 +++ b/code/DocsSample/ArkUISample/Navigation/build-profile.json5 @@ -19,8 +19,9 @@ { "name": "default", "signingConfig": "default", - "targetSdkVersion": "20", - "compatibleSdkVersion": "20", + "targetSdkVersion": 20, + "compileSdkVersion": 20, + "compatibleSdkVersion": 20, "runtimeOS": "OpenHarmony", "buildOption": { "strictMode": { diff --git a/code/DocsSample/ArkUISample/Navigation/entry/src/main/module.json5 b/code/DocsSample/ArkUISample/Navigation/entry/src/main/module.json5 index da837d9dff..7b9a375477 100644 --- a/code/DocsSample/ArkUISample/Navigation/entry/src/main/module.json5 +++ b/code/DocsSample/ArkUISample/Navigation/entry/src/main/module.json5 @@ -19,7 +19,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone" + "default" ], "deliveryWithInstall": true, "installationFree": false, -- Gitee