Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Gradle build fails in Unity 2022 but not Unity 2021-- unityLibrary:processReleaseManifest

Discussion in 'VR' started by KevinXR, Jun 8, 2023.

  1. KevinXR

    KevinXR

    Unity Technologies

    Joined:
    Jan 19, 2023
    Posts:
    23
    Hey everyone, Kevin from the Unity XR team here.

    We identified an issue that causes projects built for Quest with Unity 2021 not to build with Unity 2022.

    This error occurs when you use the "Oculus->Tools" menu to "create store-compatible AndroidManifest.xml". Subsequently, when building the project, Gradle builds fail with the error "Execution failed for task ':unityLibrary: processReleaseManifest'".

    Solution:
    This issue is resolved by upgrading to v53 or later of Oculus Integration asset.
    If you are unable to upgrade, Meta provided work-around instructions:


    1. Open "Assets/Oculus/VR/Editor/AndroidManifest.OVRSubmission.xml"
    2. Change the line,
    {{ android:excludeFromRecents="true">}}
    to
    {{ android:excludeFromRecents="true"
    android:exported="true">}}​
     
  2. GamerTobbe

    GamerTobbe

    Joined:
    Apr 4, 2019
    Posts:
    23
    Now it complains about:
    Code (CSharp):
    1. ERROR: We found issues with the APK during validation. Please check that the APK meets the `Application Manifest Requirements` and then resubmit your app.
    2. * APK:ns screen orientation is not set to landscape (android:screenOrientation i AndroidManifest.xml).
    , it is set in Unity to Landscape left as default
    This error gets up when uploading to Oculus store
     
  3. KevinXR

    KevinXR

    Unity Technologies

    Joined:
    Jan 19, 2023
    Posts:
    23
    @GamerTobbe did this work for you in Unity 2021? Which version of Unity are you seeing the error in and which version of the Oculus Integration Asset are you using?
     
  4. GamerTobbe

    GamerTobbe

    Joined:
    Apr 4, 2019
    Posts:
    23
    Hey this is a 2022LTS issue with Oculus, we had to remove all the orientation+layout in manifest-configlogs and rewrite them in manually. Seems like manifest doesn't care about Unity settings.

    Another problem is that you can't use OpenXR 1.7/1.8. URP Errors, blackscreen. Sounds and code works tho.