1099 Posted September 6, 2023 Share Posted September 6, 2023 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 More sharing options...
Alex_HTC Posted September 6, 2023 Share Posted September 6, 2023 @1099 Howdy! 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" Thanks, Alex Link to comment Share on other sites More sharing options...
1099 Posted September 7, 2023 Author Share Posted September 7, 2023 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now