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"

Android packaging failed

Hello, when I try to package my projet for Android (Shipping) I got an error and I do not know how to fix it. Here is the error log:

 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): BUILD FAILED
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:871: Can't read [C:\NVPACK\android-sdk-windows\platforms\android-24\android.jar] (Can't process class [dalvik/system/DexClassLoader.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Total time: 14 seconds
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: Le fichier 'B:\Unreal Projects\RollTheBall\Intermediate/Android/APK/bin/RollTheBall-release.apk' est introuvable.
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Nom de fichier : 'B:\Unreal Projects\RollTheBall\Intermediate/Android/APK/bin/RollTheBall-release.apk'
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDat
 aInApk, Boolean bDisallowExternalFilesDir)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à Project.Package(ProjectParams Params, Int32 WorkingCL)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à BuildCookRun.DoBuildCookRun(ProjectParams Params)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à BuildCookRun.ExecuteBuild()
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AutomationTool.BuildCommand.Execute()
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AutomationTool.Automation.Process(String[] Arguments)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AutomationTool.Program.MainProc(Object Param)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)):    à AutomationTool.Program.Main()
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): BUILD FAILED
 PackagingResults:Error: Error Unknown Error

The error is porbably coming from ANT because of this line:

 UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:871: Can't read [C:\NVPACK\android-sdk-windows\platforms\android-24\android.jar] (Can't process class [dalvik/system/DexClassLoader.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))

Cheers.

Product Version: UE 4.15
Tags:
more ▼

asked Feb 20 '17 at 09:32 PM in Packaging & Deployment

avatar image

Cypaubr
1 6 5 8

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

1 answer: sort voted first

The issue was fixed by downgrading from JDK 8 to JDK 7 and changing CodeWorks suite from R5 to R4.

more ▼

answered Feb 23 '17 at 05:01 AM

avatar image

Cypaubr
1 6 5 8

(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