Error packaging for android

When i try to package my project for Android i get this error:

MainFrameActions: Empaquetado (Android (Todo)): ====23/03/2015 0:28:59====PERFORMING FINAL APK PACKAGE OPERATION================================================
MainFrameActions: Empaquetado (Android (Todo)): UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Making .apk with Ant… (note: it’s safe to ignore javac obsolete warnings)
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\auth\GoogleAuthUtil.class(com\google\android\gms\auth:GoogleAuthUtil.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\common\api\GoogleApiClient.class(com\google\android\gms\common\api:GoogleApiClient.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\common\GooglePlayServicesUtil.class(com\google\android\gms\common:GooglePlayServicesUtil.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\ads\AdRequest.class(com\google\android\gms\ads:AdRequest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\ads\AdView.class(com\google\android\gms\ads:AdView.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\ads\AdSize.class(com\google\android\gms\ads:AdSize.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\ads\AdListener.class(com\google\android\gms\ads:AdListener.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\plus\Plus.class(com\google\android\gms\plus:Plus.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\ads\AdRequest$Builder.class(com\google\android\gms\ads:AdRequest$Builder.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\plus\Account.class(com\google\android\gms\plus:Account.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\auth\UserRecoverableAuthException.class(com\google\android\gms\auth:UserRecoverableAuthException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] warning: com\google\android\gms\auth\GoogleAuthException.class(com\google\android\gms\auth:GoogleAuthException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
MainFrameActions: Empaquetado (Android (Todo)): [javac] It is recommended that the compiler be upgraded.
MainFrameActions: Empaquetado (Android (Todo)): [javac] Note: Some input files use or override a deprecated API.
MainFrameActions: Empaquetado (Android (Todo)): [javac] Note: Recompile with -Xlint:deprecation for details.
MainFrameActions: Empaquetado (Android (Todo)): [javac] 12 warnings
MainFrameActions: Empaquetado (Android (Todo)): BUILD FAILED
MainFrameActions: Empaquetado (Android (Todo)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:932: The following error occurred while executing this line:
MainFrameActions: Empaquetado (Android (Todo)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:950: null returned: 1
MainFrameActions: Empaquetado (Android (Todo)): Total time: 1 minute 26 seconds
MainFrameActions: Empaquetado (Android (Todo)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Empaquetado (Android (Todo)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Empaquetado (Android (Todo)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c “C:/NVPACK/apache-ant-1.8.2/bin/ant.bat” -quiet debug
MainFrameActions: Empaquetado (Android (Todo)): Stacktrace: en UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirect
MainFrameActions: Empaquetado (Android (Todo)): ory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
MainFrameActions: Empaquetado (Android (Todo)): en UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: Empaquetado (Android (Todo)): en UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: Empaquetado (Android (Todo)): en AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Empaquetado (Android (Todo)): en Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Empaquetado (Android (Todo)): en BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Empaquetado (Android (Todo)): en BuildCommand.Execute()
MainFrameActions: Empaquetado (Android (Todo)): en AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
MainFrameActions: Empaquetado (Android (Todo)): en AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Empaquetado (Android (Todo)): en AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Empaquetado (Android (Todo)): en AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Empaquetado (Android (Todo)): en AutomationTool.Program.Main()
MainFrameActions: Empaquetado (Android (Todo)): Program.Main: ERROR: ERROR: cmd.exe failed with args /c “C:/NVPACK/apache-ant-1.8.2/bin/ant.bat” -quiet debug
MainFrameActions: Empaquetado (Android (Todo)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Empaquetado (Android (Todo)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Empaquetado (Android (Todo)): Domain_ProcessExit
MainFrameActions: Empaquetado (Android (Todo)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Empaquetado (Android (Todo)): copying UAT log files…
MainFrameActions: Empaquetado (Android (Todo)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.

i have installed TADP and VS2013. Please help me

I changed the maps to a new project and now i can compile But i get black screen when i install the apk on my phone. Any solution?

Hi Doky,

Can you attach your logs to this thread as a file? It’s very hard to read as a block of text. Logcat logs would be great, also. Can you successfully package any project, or is the problem solely your personal projects?

Thanks!

Also, here is another thread with the "cmd.exe failed with args /c “C:/NVPACK/apache-ant-1.8.2/bin/ant.bat” error and a possible solution, and another thread with a similar problem, please have a look and see if either of these help.

thank you. now i have other problem. I get black screen when i package my project for android. mi phone is a ascend g510

Hi Doky,

Still gonna need all the logs you can give us to try and figure this out. Are you able to package anything at all? If you can try to package the Tappy Chicken project (found in the learn tab of the launcher) for development and ETC1, then your problem might be specific to your project. If Tappy packaging fails, please include output logs from the editor, and logcat logs from TADP.

Thanks very much!

Hi Doky,

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

Thanks very much!