Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
paulcool88's avatar
paulcool88
Protege
3 years ago

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

7 Replies

Replies have been turned off for this discussion
  • 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!

  • 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>
    ```
    • guyvridk's avatar
      guyvridk
      Explorer

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