cancel
Showing results for 
Search instead for 
Did you mean: 

Cant upload quest apk to store

paulcool88
Explorer

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 7

SamuelTBeslogic
Explorer

Same issue with 2022.2.6f1
cant_upload.gif

How2Series
Explorer

same with 2022.2.1f1 ...  like really?

paulcool88
Explorer

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

masta-yoda
Protege

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!

What did you change to make it work?

masta-yoda
Protege

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>
```

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