虚幻4打包安卓的问题

首先必须使用虚幻4指定的版本的SDK和NDK,被这个问题困扰了很久,最后发现是版本问题。

=================================================================
 MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Preparing native code for debugging...
 MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.MakeApk:
 MainFrameActions: Packaging (Android (ETC2)): ====17/2/2015 5:55:41 PM====PERFORMING FINAL APK PACKAGE OPERATION================================================
 MainFrameActions: Packaging (Android (ETC2)): UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings)
 MainFrameActions: Packaging (Android (ETC2)):     [javac] Note: D:\Mantri\Explorer\Intermediate\Android\APK\src\com\android\vending\licensing\LicenseChecker.java uses or overrides a deprecated API.
 MainFrameActions: Packaging (Android (ETC2)):     [javac] Note: Recompile with -Xlint:deprecation for details.
 MainFrameActions: Packaging (Android (ETC2)): BUILD FAILED
 MainFrameActions: Packaging (Android (ETC2)): D:\NVPACK_Full\android-sdk-windows\tools\ant\build.xml:892: The following error occurred while executing this line:
 MainFrameActions: Packaging (Android (ETC2)): D:\NVPACK_Full\android-sdk-windows\tools\ant\build.xml:894: The following error occurred while executing this line:
 MainFrameActions: Packaging (Android (ETC2)): D:\NVPACK_Full\android-sdk-windows\tools\ant\build.xml:906: The following error occurred while executing this line:
 MainFrameActions: Packaging (Android (ETC2)): D:\NVPACK_Full\android-sdk-windows\tools\ant\build.xml:283: null returned: 1
 MainFrameActions: Packaging (Android (ETC2)): Total time: 5 seconds
 MainFrameActions: Packaging (Android (ETC2)): BuildCommand.Execute: ERROR: BUILD FAILED
 MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception:
 MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "D:\NVPACK_Full\apache-ant-1.8.2/bin/ant.bat" -quiet debug
 MainFrameActions: Packaging (Android (ETC2)): Stacktrace:    at UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingD
 MainFrameActions: Packaging (Android (ETC2)): irectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
 MainFrameActions: Packaging (Android (ETC2)):    at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage)
 MainFrameActions: Packaging (Android (ETC2)):    at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor)
 MainFrameActions: Packaging (Android (ETC2)):    at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
 MainFrameActions: Packaging (Android (ETC2)):    at Project.Package(ProjectParams Params, Int32 WorkingCL)
 MainFrameActions: Packaging (Android (ETC2)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
 MainFrameActions: Packaging (Android (ETC2)):    at BuildCommand.Execute()
 MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
 MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Automation.Process(String[] CommandLine)
 MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Program.MainProc(Object Param)
 MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
 MainFrameActions: Packaging (Android (ETC2)):    at AutomationTool.Program.Main()
 MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: ERROR: cmd.exe failed with args /c "D:\NVPACK_Full\apache-ant-1.8.2/bin/ant.bat" -quiet debug
 MainFrameActions: Packaging (Android (ETC2)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
 MainFrameActions: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=1
 MainFrameActions: Packaging (Android (ETC2)): Domain_ProcessExit
 MainFrameActions: Packaging (Android (ETC2)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
 MainFrameActions: Packaging (Android (ETC2)): copying UAT log files...
 MainFrameActions: Packaging (Android (ETC2)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
 MainFrameActions: Packaging (Android (ETC2)): BUILD FAILED
今天被这个问题困扰了很久,

解决方案是在Intermediate/android/APK文件夹里面用命令行       运行   ANT CLEAN


真是无奈了这个问题。


最后奉上已经下载完成的虚幻4打包安卓的所有资源下载链接:

http://download.csdn.net/detail/lqpgfz/8894997


上面是打包不成功,还有编译不通过的问题

虚幻4 打包安卓失败 cannot find -l*** || ant.bat" debug


http://blog.csdn.net/lqpgfz/article/details/52463310






你可能感兴趣的:(虚幻4)