你好
我创建了一个相机应用程序并设置了几个 <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.html和 https://developer.android.com/reference/android/hardware/Camera.html满足所有要求
关于android - Google Developers 不允许我使用 android.hardware.Camera 或 camera2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40990563/