【问题标题】:Authorization problem for Android emulator on macOS Mojave?macOS Mojave 上 Android 模拟器的授权问题?
【发布时间】:2019-12-27 16:44:37
【问题描述】:

我无法通过 macOS Mojave 上的 Android Studio 在模拟器上运行我的 Android 应用程序。但是我使用连接到 USB 端口的物理设备运行相同的应用程序没有问题。我认为问题可能是模拟器无权访问我的 Macbook Pro 的网络摄像头。在终端上:

$ emulator -webcam-list                                                                                                                                                                                                                                                
List of web cameras connected to the computer:
Camera 'webcam0' is connected to device 'CC24342DY7CF6VVDK' on channel 0 using pixel format 'YUYV'

但是当我在 CLI 上启动模拟器时,我会收到以下消息:

$ emulator -avd Pixel_2_API_29                                
emulator: WARNING: Camera name 'webcam0' is not found in the list of connected cameras.
Use '-webcam-list' emulator option to obtain the list of connected camera names.

这里有一个关于这个问题的问题:https://youtrack.jetbrains.com/issue/IDEA-219288

但是我的终端被授权访问网络摄像头。我可以毫无问题地运行其他应用程序从 CLI 访问相机。

所以我认为这是有问题的。有什么建议吗?

【问题讨论】:

    标签: android camera android-emulator macos-mojave


    【解决方案1】:

    注意:目前,MediaRecorder 不能在模拟器上运行。

    这与 macOS 安全性无关。
    https://developer.android.com/reference/android/media/MediaRecorder

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-06
      • 2021-12-30
      相关资源
      最近更新 更多