x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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\google-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\google-play-services_lib_rev19\libs\google-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(List`1 CommandsToExecute, CaselessDictionary`1 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...

Product Version: UE 4.11
Tags:
more ▼

asked Jun 07 '16 at 02:29 PM in Packaging & Deployment

avatar image

MirrorKey VR
8 2 2

avatar image Samantha Sutton ♦♦ STAFF Jun 14 '16 at 06:17 PM

MirrorTechnology,

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

Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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!

more ▼

answered Jun 20 '16 at 01:24 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question