版本12的@ohos.application.uriPermissionManager.d.ts文件里面内容为空
问题描述
我本地的ohos.application.uriPermissionManager.d.ts文件内容没有任何函数代码 我看仓库里面的是正常的,是我下载sdk的方式不正确还是什么
环境
window
开发工具
devecostudio-windows-5.0.9.30
代码
https://gitee.com/openharmony/applications_app_samples.git
code/SystemFeature/Security/DLPManage
使用sdk
compileSdkVersion": 11,
compatibleSdkVersion": 11,
包引入代码
import uriPermissionManager from '@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
* @kit AbilityKit
*/
/**
* This module provides the capability to authorize URI.
*
* @namespace uriPermissionManager
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 10
*/
declare namespace uriPermissionManager {
}
export default uriPermissionManager;
2
浏览157 发布于2025-03-27 13:58浙江
全部评论
最多点赞
最新发布
最早发布
写回答
新增插入模板功能
一键使用模板,快速填写内容,轻松发帖~
知道了
- 为了保障您的信息安全,请勿上传您的敏感个人信息(如您的密码等信息)和您的敏感资产信息(如关键源代码、签名私钥、调试安装包、业务日志等信息),且您需自行承担由此产生的信息泄露等安全风险。
- 如您发布的内容为转载内容,请注明内容来源。
我要提问题
目录 收起
问题描述
环境
开发工具
代码
使用sdk
包引入代码
编译报错
本地的@ohos.application.uriPermissionManager文件内容
了解社区公约,与您携手共创和谐专业的开发者社区。








































苏公安网备 32011402010933号