Jump to content

Adb does not exist. DirectPreview window is not showing Start Device APK after install Device APK


Recommended Posts

I am following this tutorial Using Direct Preview For Testing On The Headset With Unity - Developer Resources (vive.com), and I am a bit confused about step 6 of Confirm Unity is using the correct Android adb.exe file.

Where is the Oath variable? Is it in the System variable or in user variables?

I am getting Adb does not exist warning in the DirectPreview window. I did reboot my PC but still getting this.





Link to comment
Share on other sites



It seems there was an assumption in the tutorial that the ANDROID_HOME variable is set. This is common for native android folks, but less so for unity android folks.

You can fix this by setting adding the fully qualified path on your machihne.

For me, i've installed the android tools in "E:\env\AndroidSDK\platform-tools" 
For most others, they've installed android tools along with the unity editor itself, in which case the path would look similar to (but would have a different version) "C:\Program Files\Unity\Hub\Editor\2022.2.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools"


Link to comment
Share on other sites

@Alex_HTC, I see! Mine looks like 

C:\Program Files\Unity\Hub\Editor\2022.2.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK

so I should set up

Variable as Path

and the value will be??

"C:\Program Files\Unity\Hub\Editor\2022.2.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools"


in the User variables window?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...