android - Google Developers 不允许我使用 android.hardware.Camera 或 camera2

标签 android android-studio android-fragments google-play android-manifest

你好

我创建了一个相机应用程序并设置了几个 <uses-feature>的,其中之一是 android.hardware.Camera(已弃用)。我尝试发送我的 APK,但 Google 决定将“支持的设备”设置为 0。我尝试对 android.hardware.camera2 做同样的事情,但结果是一样的;没有支持的设备。

这是什么原因造成的?

最佳答案

您添加了:

<uses-feature android:name="android.hardware.camera" />

但您还需要:

<uses-permission android:name="android.permission.CAMERA" />

也许还有:

<uses-feature android:name="android.hardware.camera.autofocus" />

检查 https://developer.android.com/guide/topics/media/camera.htmlhttps://developer.android.com/reference/android/hardware/Camera.html满足所有要求

关于android - Google Developers 不允许我使用 android.hardware.Camera 或 camera2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40990563/

相关文章:

安卓工作室 : Could not create plugin of type 'AppPlugin'

android - 如何解决 "Warning: debug info can be unavailable. Please close other application using ADB: Restart ADB integration and try again"

android - 后退按钮行为会有所不同,具体取决于我是从抽屉导航还是从 UI 元素进入 Activity

android - 在 fragment 中自定义 xml 布局 - Android

android - 如何在 onclicklistener 上获取 Activity

javascript - 如何防止应用程序浏览器中的 Facebook 打开我的网站链接?

android - 从服务访问应用程序类

java - Android NFC 读卡器给出 "avc: denied"

android - Centos 视频优化器

android - 房间持久化库(依赖问题),MVVM设计模式