Not sure what to do since I am a beginner at Unity. My version is 6000.0.25f1 with all of the recommended external tools for Android. I think this is related to a Gradle timeout error but not 100% sure. Any help with this issue is appreciated and I can send any additional information needed. Thanks in advance!
Sometimes the API level is not updated correctly.
Change your API level in “Edit->Project Settings->Player” to the latest (Level 35 or 36).
Try to generate a build, Unity should updates its Android SDK automatically.
Then go back to your previous API level.
Also if you are using XR Plug-in Management go to “Edit->Project Settings->Project Validation” and fix what you can.
Currently I am not use XR Plug-in Management, should I be? Also I tried the mentioned fixed by changing the API version to level 35 and the error is still happening. Thank you for the suggestion.
My best advice if you just started your project is to use the OpenXR workflow instead (XR Interaction Toolkit and XR Plugin Management), it is well documented, setup most of the project settings for you and is less confusing than the MetaXR plugin.
I have tried all of these fixes and it still will not build. Not sure what I am doing wrong here. Thank you for the amazing suggestions again. I am also running into this error every time I start the editor:
Yeah you should fixed all the errors you can to ensure your build will work.
There can be a version mismatch between different libraries and possibly some .dll duplicated.
Close Unity and delete the Library and Temp folders of your project (Unity will regenerate these on launch).
Dupplicated .dll can be caused by 3rd party scripts or libraries (often in Assets and Library). Check if you installed one yourself, otherwise it may be an installation failure and the previous solution should have fixed it.
Update or reinstall Meta XR SDK
If that doesn’t work these guys seems to have found a solution:
I got it to Work! For anyone else trying to fix this problem my fix was the delete the library folder, connect quest to my computer via usb, do a ovr build and run, then build the project normally.