Lahar Shah
Lahar Shah

Reputation: 7664

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. I am getting the following error when trying to build and run on a connected Oculus Quest 2 device!

Android device is not responding! Make sure USB debugging has been enabled and that the device has authorized this computer. Check your device, in most cases there should be a small icon in the status bar telling you if the USB connection is up.

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

enter image description here

Thank you!

Upvotes: 0

Views: 3433

Answers (3)

I have installed Android platform tools and Xcode(wrong) and more, it did't worked, additional software is no needed. I have uninstalled all that, and uninstalled the unity version with unity hub and installed again following official tutorial steps and it worked like a charm! https://learn.unity.com/course/create-with-vr?uv=2020.3 Maybe a module was missing or something but I was going crazy for two days. Hope it helps!! MacBook Air M1, Unity 2020.3.32f1, Blender, Oculus Quest 2.

Upvotes: 0

Lahar Shah
Lahar Shah

Reputation: 7664

It is working after I installed the android platform tools.

  1. Install android-platform-tools
brew install android-platform-tools
  1. Reconnect the USB to Oculus Quest 2 device, this time in oculus I got 2 confirmation boxes! One of them has my laptop address and also the checkbox to remember. I selected Allow.

  2. After that File > Build and Run is now working all fine!

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!

Upvotes: 0

sharimken
sharimken

Reputation: 179

I am also developing Quest with Macbook, on Mac OS Unity, you have to install it via terminal with below command.

adb install -r /Users/username/Documents/yourProjects/your.apk

Otherwise, you have to install bootcamp Win10 for debugging via Quest Link mode.

Upvotes: 1

Related Questions