zhangrenyang / HarmonyOS

HarmonyOS
0 stars 1 forks source link

The compatibleSdkVersion 9 cannot be smaller than version 10 declared in library [:library] #8

Open zhangrenyang opened 7 months ago

zhangrenyang commented 7 months ago

2024-04-07_182811

zhangrenyang commented 7 months ago

修改oh-package.json5,锁死@ohos/pulltorefresh版本,重新安装

{
  "license": "",
  "devDependencies": {
    "@ohos/hypium": "1.0.11"
  },
  "author": "",
  "name": "huaweimall",
  "description": "Please describe the basic information.",
  "main": "",
  "version": "1.0.0",
  "dependencies": {
+    "@ohos/pulltorefresh": "2.0.1"
  }
}

如果还不行就删除 oh_modules 目录,重新安装

zhangrenyang commented 7 months ago

注意一定要把前面的^去掉 "@ohos/pulltorefresh": "2.0.1",而不是能是"@ohos/pulltorefresh": "^2.0.1"