dcloudio / dcloudio/native-docs

荣耀 20 + Android10,无法拉起摄像机

Open
#103 1 comment 0 reactions 1 assignee Claimed by @ArrayDC View on GitHub
Dominant language
No language data
Stars
88
Forks
75
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
荣耀 20 + Android10,无法拉起摄像机

**复现步骤**
尝试运行下列代码:

```js
uni.chooseImage({
count: 1,
sourceType: ['camera'],
success: function (res) {
// ......
}
})
```

**预期结果**
正常拉起摄像头进行拍照

**实际结果**
以下测试均为离线打包:

其中,荣耀 20 代表:荣耀 20,MagicUI 3.1.0(Android 10)

OPPO 代表:OPPO R11 Plusk,ColorOS 5.2.1(Android 8.1.0)

打勾代表能否拉起摄像头

| / | 荣耀 20 | OPPO |
| --- | --- | --- |
| 2.8.13 | √ | √ |
| 2.9.3 | x | √ |
| 2.9.7(Beta) | x | √ |
| 2.9.8 | x | √ |

**系统信息:**
- 发行平台: App
- 操作系统: MagicUI 3.1.0(Android 10)
- HBuilderX版本: 参考上方实际结果中的表格,所有测试中打包基座和 HBuilderX 版本均保持一致
- uni-app版本: 参考上方实际结果中的表格,所有测试中打包基座和 HBuilderX 版本均保持一致
- 设备信息: 荣耀 20

**补充信息**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.