Skip to main content
paulcool88
Inspiring
January 18, 2023

Cant upload quest apk to store

When I try and upload my apk to the store I get the following error:

* APK install location should be `auto` (android:installLocation in AndroidManifest.xml). See documentation at: https://developer.oculus.com/distribute/publish-mobile-manifest/

I set the install location to automatic in the unity project settings. I have also set android:installLocation to auto in my custom androidmanifest.xml file. This is using unity 2022.2.0f1

    This topic has been closed for replies.

    7 replies

    SamuelTBeslogic
    New Participant
    February 14, 2023

    Same issue with 2022.2.6f1

    How2Series
    Inspiring
    February 14, 2023

    same with 2022.2.1f1 ...  like really?

    paulcool88
    Inspiring
    February 15, 2023

    Its an issue with unity 2022.2.2+. Hopefully they'll have a fix soon. In the meantime you'll have to revert to an earlier unity version. Read about it here https://issuetracker.unity3d.com/issues/android-install-location-changes-when-exporting-project

    Participant
    February 18, 2023

    Found a workaround, went to `C:\Program Files\Unity\Hub\Editor\2022.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\Apk\LauncherManifest.xml` and changed the default config which the Unity uses before merging with the custom one. Woah, the APK uploaded, success!

    New Participant
    May 23, 2023

    What did you change to make it work?

    Participant
    May 24, 2023

    Changed the install location as required by Oculus to `auto`

     

    android:installLocation="auto"
     
    Later switched to Unity 2022.2.121f and the build/upload works without modifying the default Unity config. Here is my default unity config as its now:
     
    android:installLocation="auto"
     
    C:\Program Files\Unity\Hub\Editor\2022.2.12f1\Editor\Data\PlaybackEngines\AndroidPlayer\Apk\LauncherManifest.xml
     
    ```
    <?xml version="1.0" encoding="utf-8"?>
    <manifest
        package="com.unity3d.player"
        android:installLocation="preferExternal">
        <supports-screens
            android:smallScreens="true"
            android:normalScreens="true"
            android:largeScreens="true"
            android:xlargeScreens="true"
            android:anyDensity="true"/>

        <application android:label="@string/app_name"
                     android:icon="@mipmap/app_icon"/>
    </manifest>
    ```
    New Participant
    September 3, 2023

     i was able to update my game with this. i highly recommend doing this if you get the error