Search Unity

Bug Custom Max Aspect Ratio In Player Settings Isn't Working (2019.4.23)

Discussion in 'Android' started by Upian, Apr 19, 2021.

  1. Upian

    Upian

    Joined:
    Jan 6, 2020
    Posts:
    9
    Hello,

    I am using Unity 2019.4.23f. We want to support a custom max aspect ratio of 2.165333 in our project (up to the iPhone X ratio), so I set the settings accordingly in the Player Settings.

    However, I get an error at the build phase:

    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:processDebugResources'.
    > Android resource linking failed
    C:\Users\bapti\Documents\Unity\Unmaze - Alpha\Temp\gradleOut\launcher\build\intermediates\merged_manifests\debug\AndroidManifest.xml:45: AAPT: error: '2,165333' is incompatible with attribute maxAspectRatio (attr) float.


    It seems to be the same error found in this thread :Build Failed -2018.3.0f2 - Custom Aspect Ratio "Up To" not Working on Samsung Galaxy S8+ and higher - Unity Forum

    The related issue (Unity Issue Tracker - Android build fails when setting a custom Aspect ratio up to 2.1 in Player settings (unity3d.com)) is marked as closed since it should be fixed in Unity 2021.1.X.

    However, we plan to release or game in Unity 2019.4.X (LTS version). Is there any chance that this problem will be solved in a future 2019.4.X release?