Forum Discussion
piotrek
10 years agoExplorer
Does Unity generate correct AndroidManifest.xml?
I am using Unity 5.3.2f1 on OSX 10.10.5. I've got "Virtual Reality Supported" option checked and I am able to run app on the device. However, after using check_submission script and generating release APK I am getting those errors:
After looking at manifest from StagingArea folder I see it doesn't include those options.
Oculus docs say:
Does it mean that my Unity version is buggy and it doesn't generate correct manifest?
Does it mean I have to create own manifest file and put it into Plugins/Android? How should it look like? Should I copy it from StagingArea and replace required options?
Also first error seems to refer to Mobile SDK - should I worry about it?
***
*** 4 errors detected. Submission does not meet requirements.
***
--> APK ('/Users/piotr/Projects/VRUnityApp/apk_export_release.apk') is not built with SDK version v1.0.0 (or newer)
--> APK is launchable (launchable-activity)
--> Intent Filter Category attribute (application/activity/intent-filter/category) must be INFO in manifest
--> Exclude from Recents (android:excludeFromRecents) must be non-0 in manifest
After looking at manifest from StagingArea folder I see it doesn't include those options.
Oculus docs say:
The manifests of projects built with Unity's first-party VR support enabled (available in Unity 5.1.1p1 and later) are automatically updated during build to meet our requirements (landscape orientation, vr_only, et cetera).
Does it mean that my Unity version is buggy and it doesn't generate correct manifest?
Does it mean I have to create own manifest file and put it into Plugins/Android? How should it look like? Should I copy it from StagingArea and replace required options?
Also first error seems to refer to Mobile SDK - should I worry about it?
15 Replies
Replies have been turned off for this discussion
- vrdavebOculus StaffThis looks like a mistake in our documentation. It probably meant to point you to http://docs.unity3d.com/Manual/class-PlayerSettingsAndroid.html
For a more step-by-step guide, see http://answers.unity3d.com/questions/403985/building-for-android.html - PenthiusXHonored GuestCreating a new Keystore Resolved the Certificate is a debug cert issue.
Build->Player settings->Publishing->CreateNewKeystore->Change Alias(to newly created one)->rebuild - plysaght47Explorer
- dheeraj786Honored GuestI am trying to submit my application for gear VR.
using oculus validate tool it shows that everything is fine and i can upload the file but when i am doing that it says
exclude from recents(android:excludeFromRecents in AndroidManifest.xml) must be set to true.
I have already set this to true in manifest file - vrdavebOculus StaffThere is currently a known issue with the AndroidManifest.xml generated by Unity. We are working to fix it, but in the meantime you will need to follow the instructions at http://answers.unity3d.com/questions/1174614/modifying-androidmanifest-for-gearvr.html to unpack, modify, and repack the APK before submitting it.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device