Download

.apk Package error

Hi guys!

I removed almost all error finally! But still one last (i think lol) error is freezing me. The exact error lines are below:

MainFrameActions: Packaging (Android (All)): [javac] Compiling 76 source files to D:\Unreal Projects\INOVAPPS\Intermediate\Android\APK\bin\classes
MainFrameActions: Packaging (Android (All)): [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
MainFrameActions: Packaging (Android (All)): [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
MainFrameActions: Packaging (Android (All)): [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
MainFrameActions: Packaging (Android (All)): [javac] D:\Unreal Projects\INOVAPPS\Intermediate\Android\APK\src\INOVAPPS\OBBData.java:20: error: integer number too large: 2385773751
MainFrameActions: Packaging (Android (All)): [javac] 2385773751 // the length of the file in bytes
MainFrameActions: Packaging (Android (All)): [javac] ^
MainFrameActions: Packaging (Android (All)): [javac] D:\Unreal Projects\INOVAPPS\Intermediate\Android\APK\src\com\Company\Inovapps\OBBData.java:20: error: integer number too large: 2385773707
MainFrameActions: Packaging (Android (All)): [javac] 2385773707 // the length of the file in bytes
MainFrameActions: Packaging (Android (All)): [javac] ^
MainFrameActions: Packaging (Android (All)): [javac] D:\Unreal Projects\INOVAPPS\Intermediate\Android\APK\src\com\YourCompany\INOVAPPS\OBBData.java:20: error: integer number too large: 2385772995
MainFrameActions: Packaging (Android (All)): [javac] 2385772995 // the length of the file in bytes
MainFrameActions: Packaging (Android (All)): [javac] ^
MainFrameActions: Packaging (Android (All)): [javac] 3 errors
MainFrameActions: Packaging (Android (All)): [javac] 3 warnings

MainFrameActions: Packaging (Android (All)): BUILD FAILED
MainFrameActions: Packaging (Android (All)): D:\NVPACK\android-sdk-windows ools\ant\build.xml:716: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (All)): D:\NVPACK\android-sdk-windows ools\ant\build.xml:730: Compile failed; see the compiler error output for details.
MainFrameActions: Packaging (Android (All)): Total time: 6 seconds
MainFrameActions: Packaging (Android (All)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c “D:/NVPACK/apache-ant-1.8.2/bin/ant.bat” debug
MainFrameActions: Packaging (Android (All)): Stacktrace: at UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, St
MainFrameActions: Packaging (Android (All)): ring Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
MainFrameActions: Packaging (Android (All)): at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: Packaging (Android (All)): at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: Packaging (Android (All)): at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)): at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (All)): at BuildCommand.Execute()
MainFrameActions: Packaging (Android (All)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
MainFrameActions: Packaging (Android (All)): at AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Android (All)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (All)): at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Android (All)): at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: ERROR: cmd.exe failed with args /c “D:/NVPACK/apache-ant-1.8.2/bin/ant.bat” debug
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Android (All)): Domain_ProcessExit
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): copying UAT log files…
MainFrameActions: Packaging (Android (All)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (All)): BUILD FAILED

Thank you very much for the attention!!

Hi HollyOPK,

There is a fix in the master branch for this in GitHub:
https://github.com/EpicGames/UnrealEngine/commit/76de37fc6fce97588080a7a01e89e7d7deb208b3

But, a 2.2 gig OBB is fairly large. You may want to look into reducing the size anyway. Take a look at this tutorial on reducing size (applies to OBB as well as just APK):

Thank you very much! I will try to reduce the OBB!

But for 100% solved problem I really need to learn to fix this, by the way the link of github dont exist.

Ty very much for the fast reply!

Have you linked your GitHub and Unreal accounts via your account management page?

The change is to add the L to this line in Engine/Source/Programs/UnrealBuildTool/Android/UEDeployAndroid.cs:


obbData.AppendFormat("{0}L // the length of the file in bytes
", File.Exists(ObbSource) ? new FileInfo(ObbSource).Length : 0);

The link should work; do you have a GitHub account linked to your UE4 account?

SOLVED! Ty very much @alexander and @chris, linked the github acc!