# \[Gear VR\] Deploying Shipping build to Gear VR fails

**URL:** <https://forums.unrealengine.com/t/gear-vr-deploying-shipping-build-to-gear-vr-fails/367575>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Android, packaging-projects, gear-vr, question\
**Created:** [August 19, 2016, 4:30am UTC](https://forums.unrealengine.com/t/gear-vr-deploying-shipping-build-to-gear-vr-fails/367575 "2016-08-19T04:30:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [August 19, 2016, 4:30am UTC](https://forums.unrealengine.com/t/gear-vr-deploying-shipping-build-to-gear-vr-fails/367575/1 "2016-08-19T04:30:56Z")

</div>

Forum thread: [UE 4.12.5 Building Shipping build fails :( - XR Development - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?120730-UE-4-12-5-Building-Shipping-build-fails-)(

I can build development builds no problem. Building shipping builds fails with:

> ====8/18/2016 9:22:55 PM====PERFORMING FINAL APK PACKAGE OPERATION================================================ MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception: ERROR: DistributionSigning settings are not all set. Check the DistributionSettings section in the Andriod tab of Project Settings MainFrameActions: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=1 (Error\_Unknown)

Here is the full log: [https://drive.google.com/open?id=0Bw...3ByMzJpN0FGT1U](https://drive.google.com/open?id=0Bw...3ByMzJpN0FGT1U)

Here is a video showing me turning on Shipping build settings: [https://www.youtube.com/watch?v=mPZO5N9TLxQ](https://www.youtube.com/watch?v=mPZO5N9TLxQ)  
If I uncheck “For Distribution” option in the Packaging in Project Settings, but leave everything else as seen in the video, build is successful, but Oculus validator still says it’s a debug/development build

So, if I was deploying for Android, I would have to fill out fields in the For Distribution section in Android section (keys and all that). Gear VR doesn’t require those, so it sounds like a bug to me.

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [August 19, 2016, 7:48am UTC](https://forums.unrealengine.com/t/gear-vr-deploying-shipping-build-to-gear-vr-fails/367575/2 "2016-08-19T07:48:01Z")

</div>

You need to create your keystore for the “For Distribution” checkbox to work - it basically signs the app without this it is always signed as a debug app by UE4

Once you create and place your keystore in the correct location you need to enter the details of it in the “Distribution signing” section of the Android settings in UE4.

Step by step:

Making a key.

You can find the keytool.exe file in the NVPACK installed with your Android Dependancies (default is C:\NVPACK) under the jdk#.#.#_## subfolder\bin. Then you can run the following in the Command Line

```
 keytool -genkey -v -keystore C:\Users\YourUserName\YourAppName.keystore -alias YourAppName -keyalg RSA -keysize 2048 -validity 10000

```

Then insert the keystore file generated in your project folder here:

\Unreal Projects\YourAppName\Build\Android

and then insert your keystore details into the “Distribution Signing” section of Android settings:

 ![64025-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/f/02fba26ec408c11241e37088929418d1d858f1bc.png)

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [August 19, 2016, 1:13pm UTC](https://forums.unrealengine.com/t/gear-vr-deploying-shipping-build-to-gear-vr-fails/367575/3 "2016-08-19T13:13:47Z")

</div>

Thanks a bunch!!!

Do I need -storepass parameter ? (not seeing it in your cmd line)

Also, what kind of file is YourAppName.keystore and what goes inside ?

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [August 19, 2016, 2:17pm UTC](https://forums.unrealengine.com/t/gear-vr-deploying-shipping-build-to-gear-vr-fails/367575/4 "2016-08-19T14:17:02Z")

</div>

1. No it will ask you for a password once you run it
2. it’s a keystore file - it comes out to about 3kb and contains unreadable stuff in it 😃
