Search Unity

Bug Android Manifest Error in Meta Quest Developer Hub Upload

Discussion in 'VR' started by FuatW, Jan 21, 2024.

  1. FuatW

    FuatW

    Joined:
    Apr 9, 2013
    Posts:
    23
    I am using Unity 2022.3.14f1 with Unity OpenXR Meta 1.0.1 & OpenXR Plugin 1.9.1

    When I'm building my APK file, then try to upload it to the Meta Quest Developer Hub, I'll get an Error saying that "The APK-Screen is not in Landscape android:screenOrientation in AndroidManifest.xml"

    Things I've tried to solve this:

    Disabled Android TV compatibly
    Used the Oculus XR Plugin instead of Open XR and Unity OpenXR Meta (which did solve the issue, but I need the OpenXR Plugin)
    Used a custom AndroidManifest with the screenOrientation setting set to "landscape" or "sensorLandscape"

    All of my attempts at solving this failed. Does anyone know how to fix this?

    I've included the log file, screenshot

    Thanks!
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,042
    Get the Meta XR sdk in the project (or if you want to go without in another project)
    In the top bar go to Meta and then generate a store compatible manifest
     
  3. FuatW

    FuatW

    Joined:
    Apr 9, 2013
    Posts:
    23
    hey! Thanks for your reply. Unfortunatley, I've already tried that to no success. If I do that, I'll get an build error saying that
    android:value="quest|quest2|questpro" clashes with some value. I did not find a fix yet for that solution.
    I'd be happy to hear more suggestions from you though!
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,042
    Best to fix that error instead of doing something else that is not guaranteed to work
     
  5. FuatW

    FuatW

    Joined:
    Apr 9, 2013
    Posts:
    23
    I found a solution:

    It turns out that setting the default orientation to auto rotation will result in an error when uploading it to the meta quest store.

    Here is what I did:

    • Don't use a custom android manifest
    • Set the default rotation to Landscape Left
     
    Red_Uk and DevDunk like this.