[英]Oculus Quest 2 - Android Device is not responding on Unity on Macbook Pro - Make sure USB debugging has been enabled
I build my first VR app using unity.我使用 unity 构建了我的第一个 VR 应用程序。 I am getting the following error when trying to build and run on a connected Oculus Quest 2 device!
尝试在连接的 Oculus Quest 2 设备上构建和运行时出现以下错误!
Android device is not responding.
Android 设备没有响应。 Make sure USB debugging has been enabled and that the device has authorized this computer, Check your device.
确保 USB 调试已启用并且设备已授权此计算机,检查您的设备。 in most cases there should be a small icon in the status bar telling you if the USB connection is up.
在大多数情况下,状态栏中应该有一个小图标告诉您 USB 连接是否已启动。
I have tried many different ways to get this working, I am not able to figure this out, is there anything else I can try?我已经尝试了许多不同的方法来让它工作,我无法弄清楚这一点,还有什么我可以尝试的吗? I have listed down things I tried and config I have!
我已经列出了我尝试过的东西和我拥有的配置!
Allow Access to data, the connected device will be able to access files on this headset.
允许访问数据,连接的设备将能够访问此耳机上的文件。 [Deny] [Allow]
[否认允许]
Screen shot for the settings and error File > Build Settings设置和错误文件 > 构建设置的屏幕截图
Thank you!谢谢!
I am also developing Quest with Macbook, on Mac OS Unity, you have to install it via terminal with below command.我也在使用 Macbook 开发 Quest,在 Mac OS Unity 上,您必须使用以下命令通过终端安装它。
adb install -r /Users/username/Documents/yourProjects/your.apk
Otherwise, you have to install bootcamp Win10 for debugging via Quest Link mode.否则,您必须安装 bootcamp Win10 才能通过 Quest Link 模式进行调试。
It is working after I installed the android platform tools.在我安装了 android 平台工具后,它就可以工作了。
brew install android-platform-tools
Reconnect the USB to Oculus Quest 2 device, this time in oculus I got 2 confirmation boxes.将 USB 重新连接到 Oculus Quest 2 设备,这次在 oculus 中我得到了 2 个确认框。 One of them has my laptop address and also the checkbox to remember.
其中一个有我的笔记本电脑地址以及要记住的复选框。 I selected Allow.
我选择了允许。
After that File > Build and Run
is now working all fine!之后
File > Build and Run
现在一切正常!
It required to have other updates to the settings but after I installed adb I did get the 2 confirmations in the quest when I connected and now the build and run functionality works all fine!它需要对设置进行其他更新,但是在我安装 adb 后,我在连接时确实得到了 2 个确认,现在构建和运行功能一切正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.