Packaging Failed when enable the "for Distribution"

I’m publishing my app in GearVR,I have build many times with debug mode it’s all successful.
But when i enable the “for Distribution”,my project build failed everytime…

Here is some of the Log:

Preparing output jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\bin\proguard\obfuscated.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\bin\proguard\original.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\JavaLibs\downloader_library\bin\classes.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Warning: can’t write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\JavaLibs-play-services_lib_rev19\bin\classes.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Warning: can’t write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\libs\vrplatlib.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Warning: can’t write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [vrplatlib.jar:META-INF/MANIFEST.MF])
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\libs\VrApi.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Warning: can’t write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [VrApi.jar:META-INF/MANIFEST.MF])
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\libs\SystemUtils.jar]
MainFrameActions: 打包 (Android (ASTC)): [proguard] Warning: can’t write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [SystemUtils.jar:META-INF/MANIFEST.MF])
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\libs\android-support-v4.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Warning: can’t write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v4.jar:META-INF/MANIFEST.MF])
MainFrameActions: packaging (Android (ASTC)): [proguard] Copying resources from program jar [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\JavaLibs-play-services_lib_rev19\libs-play-services.jar]
MainFrameActions: packaging (Android (ASTC)): [proguard] Printing classes to [E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\bin\proguard\dump.txt]…
MainFrameActions: packaging (Android (ASTC)): -dex:
MainFrameActions: packaging (Android (ASTC)): [dex] input: E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\bin\proguard\obfuscated.jar
MainFrameActions: packaging (Android (ASTC)): [dex] Found Deleted Target File
MainFrameActions: packaging (Android (ASTC)): [dex] Converting compiled files and external libraries into E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\bin\classes.dex…
MainFrameActions: packaging (Android (ASTC)): -crunch:
MainFrameActions: packaging (Android (ASTC)): [crunch] Crunching PNG Files in source dir: E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\res
MainFrameActions: packaging (Android (ASTC)): [crunch] To destination dir: E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\bin\res
MainFrameActions: packaging (Android (ASTC)): [crunch] Crunched 0 PNG files to update cache
MainFrameActions: packaging (Android (ASTC)): -package-resources:
MainFrameActions: packaging (Android (ASTC)): [aapt] Creating full resource package…
MainFrameActions: packaging (Android (ASTC)): -package:
MainFrameActions: packaging (Android (ASTC)): [apkbuilder] Current build type is different than previous build: forced apkbuilder run.
MainFrameActions: packaging (Android (ASTC)): [apkbuilder] Creating CubeRun-release-unsigned.apk for release…
MainFrameActions: packaging (Android (ASTC)): -post-package:
MainFrameActions: packaging (Android (ASTC)): -release-prompt-for-password:
MainFrameActions: packaging (Android (ASTC)): -release-nosign:
MainFrameActions: packaging (Android (ASTC)): -release-sign:
MainFrameActions: packaging (Android (ASTC)): [echo] Signing final apk…
MainFrameActions: packaging (Android (ASTC)): BUILD FAILED
MainFrameActions: packaging (Android (ASTC)): E:\AndroidWorks\android-sdk-windows\tools\ant\build.xml:1135: The following error occurred while executing this line:
MainFrameActions: packaging (Android (ASTC)): E:\AndroidWorks\android-sdk-windows\tools\ant\build.xml:1147: E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate\Android\APK\mirrorkeyvr (ϵͳ?Ҳ???ָ???ļ???)
MainFrameActions: packaging (Android (ASTC)): Total time: 29 seconds
MainFrameActions: packaging (Android (ASTC)): Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: can’t find file“E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermediate/Android/APK/bin/CubeRun-release.apk”。
MainFrameActions: packaging (Android (ASTC)): file name:“E:\cuberun\CubeRun\CubeRun_4.11.2 4.12 - 3\Intermedia
MainFrameActions: packaging (Android (ASTC)): te/Android/APK/bin/CubeRun-release.apk”
MainFrameActions: packaging (Android (ASTC)): at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
MainFrameActions: packaging (Android (ASTC)): at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
MainFrameActions: packaging (Android (ASTC)): at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: packaging (Android (ASTC)): at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: packaging (Android (ASTC)): at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: packaging (Android (ASTC)): at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: packaging (Android (ASTC)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: packaging (Android (ASTC)): at AutomationTool.BuildCommand.Execute()
MainFrameActions: packaging (Android (ASTC)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
MainFrameActions: packaging (Android (ASTC)): at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: packaging (Android (ASTC)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: packaging (Android (ASTC)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
MainFrameActions: packaging (Android (ASTC)): at AutomationTool.Program.Main()
MainFrameActions: packaging (Android (ASTC)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
MainFrameActions: packaging (Android (ASTC)): Domain_ProcessExit
MainFrameActions: packaging (Android (ASTC)): copying UAT log files…
MainFrameActions: packaging (Android (ASTC)): BUILD FAILED
PackagingResults:Error: error Unknown Error

I guess there is something wrong in my signing part.Because i want pubilsh my app to the oculus store,so i must enable the “for Distribution”…
Does anyone know what’s wrong with my BUILDING…

MirrorTechnology,

Could you please provide your output logs as a .txt file? I would also go through the [documentation for Gear VR][1] to make sure nothing was missed.

Thanks!

https://docs.unrealengine.com/latest/INT/Platforms/GearVR/

Hey MirrorTechnology,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!