12 Star 4 Fork 12

OpenHarmony-SIG / okdownload

 / 详情

编译不过,直接报错了

待办的
缺陷
创建于  
2024-04-17 09:31

【模块名_概率】简要描述:
编译不过,直接报错了

ERROR: ArkTS:ERROR File: oh_modules/.ohpm/@ohos+okdownload@2.0.0/oh_modules/@ohos/okdownload/src/main/ets/common/okdownload/listener/EndCauseListener.ts:71:17
The inferred type of 'createEndCauseListener' cannot be named without a reference to '.ohpm/@ohos+okdownload@2.0.0/oh_modules/@ohos/okdownload'. This is likely not portable. A type annotation is necessary.

ERROR: ArkTS:ERROR File: oh_modules/.ohpm/@ohos+okdownload@2.0.0/oh_modules/@ohos/okdownload/src/main/ets/common/okdownload/listener/EndCauseListener.ts:71:17
The inferred type of 'createEndCauseListener' cannot be named without a reference to '.ohpm/@ohos+okdownload@2.0.0/oh_modules/@ohos/okdownload'. This is likely not portable. A type annotation is necessary.

ERROR: ArkTS:ERROR File: oh_modules/.ohpm/@ohos+okdownload@2.0.0/oh_modules/@ohos/okdownload/src/main/ets/common/okdownload/listener/DownloadListenerWithSpeed.ts:49:17
The inferred type of 'createListenerWithSpeed' cannot be named without a reference to '.ohpm/@ohos+okdownload@2.0.0/oh_modules/@ohos/okdownload'. This is likely not portable. A type annotation is necessary.

【环境信息】:

  • 网络环境
  • 硬件开发板型号
  • 软件版本信息或tag节点
  • 测试环境
  • 其他

【预置条件】:

【测试步骤】:

【预期结果】:

【实际结果】:

【恢复手段】:

【出现概率】:问题出现次数/实际测试次数

【定位信息】:

    1. Log、截图、多媒体文件等,所有和问题有关的信息:

评论 (1)

ethan 创建了缺陷

你好,你使用的sdk的版本是多少的呢?当前需要升级 api 11以上。

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
1
https://gitee.com/openharmony-sig/okdownload.git
git@gitee.com:openharmony-sig/okdownload.git
openharmony-sig
okdownload
okdownload

搜索帮助

53164aa7 5694891 3bd8fe86 5694891