HarmonyOS鸿蒙Next版本12的@ohos.application.uriPermissionManager.d.ts文件里面内容为空

问题描述

我本地的ohos.application.uriPermissionManager.d.ts文件内容没有任何函数代码 我看仓库里面的是正常的,是我下载sdk的方式不正确还是什么

环境

    window

开发工具

devecostudio-windows-5.0.9.30

## 代码

```swift
    https://gitee.com/openharmony/applications_app_samples.git
    code/SystemFeature/Security/DLPManage

使用sdk

    compileSdkVersion": 11,
    compatibleSdkVersion": 11,

包引入代码

import uriPermissionManager from '[@ohos](/user/ohos).application.uriPermissionManager';

编译报错

Cannot use namespace 'uriPermissionManager' as a value. <ArkTSCheck>

本地的@ohos.application.uriPermissionManager文件内容

/*
 * Copyright (c) 2023 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License"),
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * [@file](/user/file)
 * [@kit](/user/kit) AbilityKit
 */

/**
 * This module provides the capability to authorize URI.
 *
 * [@namespace](/user/namespace) uriPermissionManager
 * [@syscap](/user/syscap) SystemCapability.Ability.AbilityRuntime.Core
 * [@since](/user/since) 10
 */
declare namespace uriPermissionManager {
}
export default uriPermissionManager;

更多关于HarmonyOS鸿蒙Next版本12的@ohos.application.uriPermissionManager.d.ts文件里面内容为空的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

您好,您的问题需要进一步分析,请您通过在线提单进一步解决:https://developer.huawei.com/consumer/cn/support/feedback/#/,感谢您的反馈和支持。

更多关于HarmonyOS鸿蒙Next版本12的@ohos.application.uriPermissionManager.d.ts文件里面内容为空的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


在HarmonyOS鸿蒙Next版本12中,@ohos.application.uriPermissionManager.d.ts文件为空,可能是由于该模块尚未实现或正在开发中。建议您关注官方文档或更新日志,以获取最新进展。同时,您可以通过其他相关模块或API实现类似功能。如有具体需求,可提供更多信息以便进一步解答。

回到顶部