Download

Error while packaging project for android

Hello~

Running AutomationTool…
Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“d:/Users/Unreal Projects/anderoid/anderoid.uproject” BuildCookRun -project=“d:/Users/Unreal Projects/anderoid/anderoid.uproject” -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=Android_ATC -targetplatform=Android -cookflavor=ATC -cookonthefly -nokill -map= -compressed -stage -deploy -cmdline=" -Messaging" -device=Android_ATC@47e706a77d04 -addcmdline="-SessionId=A14B64EE482420A28C2E609ED03FD278 -SessionOwner=‘Administrator’ -SessionName=‘Redmi_4A (47e706a77d04)’ " -run
BuildCookRun.SetupParams: Setting up ProjectParams for d:\Users\Unreal Projects\anderoid\anderoid.uproject
Project.Cook: ********** COOK COMMAND STARTED **********
CommandUtils.Run: Run: d:\Program Files\Epic Games\UE_4.17\Engine\Binaries\Win64\UE4Editor.exe “d:\Users\Unreal Projects\anderoid\anderoid.uproject” -run=cook -cookonthefly -unattended -CrashForUAT -log -abslog=“C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool\Logs\d+Program+Files+Epic+Games+UE_4.17\Server.log” -SessionId=A14B64EE482420A28C2E609ED03FD278 -SessionOwner=“Administrator” -SessionName=“Redmi_4A (47e706a77d04)”
Project.Cook: Waiting a few seconds for the server to start…
Project.Cook: ********** COOK COMMAND COMPLETED **********
Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND STARTED **********
Project.WriteStageCommandline: Creating UE4CommandLine.txt
Project.CreateStagingManifest: Creating Staging Manifest…
Project.CleanStagingDirectory: Cleaning Stage Directory: d:\Users\Unreal Projects\anderoid\Saved\StagedBuilds\Android_ATC
Project.CopyManifestFilesToStageDir: Copying NonUFSFiles to staging directory: d:\Users\Unreal Projects\anderoid\Saved\StagedBuilds\Android_ATC
Project.CopyManifestFilesToStageDir: Copying DebugFiles to staging directory: d:\Users\Unreal Projects\anderoid\Saved\StagedBuilds\Android_ATC
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 shell “echo $EXTERNAL_STORAGE”
CommandUtils.Run: Run: Took 0.1360078s to run adb.exe, ExitCode=0
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 pull /sdcard/UE4Game/anderoid/Manifest_UFSFiles_Android.txt “d:\Users\Unreal Projects\anderoid\Saved\StagedBuilds\Android_ATC\Manifest_UFSFiles_Android.txt_47e706a77d04”
CommandUtils.Run: Run: Took 0.1030059s to run adb.exe, ExitCode=1
Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND COMPLETED **********
Project.Package: ********** PACKAGE COMMAND STARTED **********
Project.Package: ********** PACKAGE COMMAND COMPLETED **********
Project.Deploy: ********** DEPLOY COMMAND STARTED **********
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 shell getprop ro.product.cpu.abi
CommandUtils.Run: Run: Took 0.122007s to run adb.exe, ExitCode=0
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 shell dumpsys SurfaceFlinger
CommandUtils.Run: Run: Took 0.1350077s to run adb.exe, ExitCode=0
AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\AndroidPermission\Source\AndroidPermission\AndroidPermission_APL.xml
AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\GoogleCloudMessaging\Source\GoogleCloudMessaging\GoogleCloudMessaging_UPL.xml
AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\Oculus\OculusVR\Source\OculusHMD\GearVR_APL.xml
AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Source\Runtime\Online\Voice\AndroidVoiceImpl_UPL.xml
UnrealPluginLanguage…ctor:
UPL: Engine\Plugins/Runtime/AndroidPermission/Source/AndroidPermission/AndroidPermission_APL.xml
UnrealPluginLanguage…ctor:
UPL: Engine\Plugins/Runtime/GoogleCloudMessaging/Source/GoogleCloudMessaging/GoogleCloudMessaging_UPL.xml
UnrealPluginLanguage…ctor:
UPL: Engine\Plugins/Runtime/Oculus/OculusVR/Source/OculusHMD/GearVR_APL.xml
UnrealPluginLanguage…ctor:
UPL: Engine\Source/Runtime/Online/Voice/AndroidVoiceImpl_UPL.xml
UEDeployAndroid.MakeApk:
====2017/9/5 15:08:31====PREPARING TO MAKE APK=================================================================
Building Java with SDK API level ‘android-26’
Building with Build Tools version ‘26.0.1’
UEDeployAndroid.PatchAntBatIfNeeded:
Patching ant.bat to work around commandline length limit (using unused drive letter Z:)
Using package name: ‘com.YourCompany.anderoid’
UEDeployAndroid.WriteJavaOBBDataFile:
==== Writing to OBB data file d:\Users\Unreal Projects\anderoid\Build\Android\src\com\YourCompany\anderoid\OBBData.java ====
UEDeployAndroid.WriteJavaDownloadSupportFiles:
==== Writing to shim file d:\Users\Unreal Projects\anderoid\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
UEDeployAndroid.WriteJavaDownloadSupportFiles:
==== Writing to template target file d:\Users\Unreal Projects\anderoid\Build\Android\src\com\YourCompany\anderoid\AlarmReceiver.java ====
UEDeployAndroid.WriteJavaDownloadSupportFiles:
==== Writing to template target file d:\Users\Unreal Projects\anderoid\Build\Android\src\com\YourCompany\anderoid\DownloaderActivity.java ====
UEDeployAndroid.WriteJavaDownloadSupportFiles:
==== Writing to template target file d:\Users\Unreal Projects\anderoid\Build\Android\src\com\YourCompany\anderoid\OBBDownloaderService.java ====
UEDeployAndroid.MakeApk: Cleaning up files based on template dir d:\Users\Unreal Projects\anderoid\Build\Android\src\com\YourCompany\anderoid
UEDeployAndroid.MakeApk: Application display name is different than last build, forcing repackage.
UnrealPluginLanguage.Init: UPL Init: armeabi-v7a
UnrealPluginLanguage.ProcessPluginNode: Android Permission Plugin Init
UnrealPluginLanguage.ProcessPluginNode: Google Cloud Messaging init
UnrealPluginLanguage.ProcessPluginNode: GCMClientSenderID set: false
UnrealPluginLanguage.ProcessPluginNode: GearVR init
UnrealPluginLanguage.ProcessPluginNode: Oculus Signature Files (osig) will be removed from APK
UnrealPluginLanguage.ProcessPluginNode: Android Voice init
UEDeployAndroid.RequiresOBB: APK contains data.
UEDeployAndroid.MakeApk: Performing complete package - wiping d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK, except for predexedLibs
UEDeployAndroid.MakeApk: bPackageDataInsideApk = False
AndroidAARHandler.AddRepositories: Added repository: C:\NVPACK\android-sdk-windows\extras\android\m2repository
AndroidAARHandler.AddRepositories: Added repository: d:\Program Files\Epic Games\UE_4.17\Engine\Source\ThirdParty\Android\extras\google\m2repository
AndroidAARHandler.AddRepositories: Added repository: d:\Program Files\Epic Games\UE_4.17\Engine\Source\ThirdParty\Android\extras\android\m2repository
UEDeployAndroid.CreateAARHandler: AARImports: com.google.android.gms, play-services-ads, 9.8.0
UEDeployAndroid.CreateAARHandler: AARImports: com.google.android.gms, play-services-auth, 9.8.0
UEDeployAndroid.CreateAARHandler: AARImports: com.google.android.gms, play-services-games, 9.8.0
UEDeployAndroid.CreateAARHandler: AARImports: com.google.android.gms, play-services-nearby, 9.8.0
UEDeployAndroid.CreateAARHandler: AARImports: com.google.android.gms, play-services-plus, 9.8.0
UEDeployAndroid.CreateAARHandler: AARImports: com.android.support, support-v13, 25.0.0
AndroidAARHandler.AddNewAAR: AAR: support-v4: 25.0.0 newer than 24.0.0
AndroidAARHandler.AddNewJAR: AAR: support-annotations: 25.0.0 newer than 24.0.0
AndroidAARHandler.ExtractAARs: Extracting AARs
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-lite-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-basement-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-base-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-tasks-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-clearcut-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-gass-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-base-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-games-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-drive-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-nearby-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR play-services-plus-9.8.0
AndroidAARHandler.ExtractAARs: Extracting AAR support-v13-25.0.0
AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => d:\Users\Unreal Projects\anderoid\Intermediate\Android\APK\JavaLibs\support-v13-25.0.0\libs\support-v13-25.0.0-internal_impl-25.0.0…jar
AndroidAARHandler.ExtractAARs: Extracting AAR support-v4-25.0.0
AndroidAARHandler.ExtractAARs: Extracting AAR support-compat-25.0.0
AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => d:\Users\Unreal Projects\anderoid\Intermediate\Android\APK\JavaLibs\support-compat-25.0.0\libs\support-compat-25.0.0-internal_impl-25.0.0…jar
AndroidAARHandler.ExtractAARs: Extracting AAR support-media-compat-25.0.0
AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => d:\Users\Unreal Projects\anderoid\Intermediate\Android\APK\JavaLibs\support-media-compat-25.0.0\libs\support-media-compat-25.0.0-internal_impl-25.0.0…jar
AndroidAARHandler.ExtractAARs: Extracting AAR support-core-utils-25.0.0
AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => d:\Users\Unreal Projects\anderoid\Intermediate\Android\APK\JavaLibs\support-core-utils-25.0.0\libs\support-core-utils-25.0.0-internal_impl-25.0.0…jar
AndroidAARHandler.ExtractAARs: Extracting AAR support-core-ui-25.0.0
AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => d:\Users\Unreal Projects\anderoid\Intermediate\Android\APK\JavaLibs\support-core-ui-25.0.0\libs\support-core-ui-25.0.0-internal_impl-25.0.0…jar
AndroidAARHandler.ExtractAARs: Extracting AAR support-fragment-25.0.0
AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => d:\Users\Unreal Projects\anderoid\Intermediate\Android\APK\JavaLibs\support-fragment-25.0.0\libs\support-fragment-25.0.0-internal_impl-25.0.0…jar
AndroidAARHandler.CopyJARs: Copying JAR support-annotations-25.0.0.jar
UEDeployAndroid.MakeApk:
====2017/9/5 15:08:32====PREPARING NATIVE CODE=================================================================
UEDeployAndroid.RequiresOBB: APK contains data.
UnrealPluginLanguage.ProcessPluginNode: Copying permission_library directory to staging before build
UnrealPluginLanguage.ProcessPluginNode:
Directory d:\Program Files\Epic Games\UE_4.17/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK/JavaLibs/permission_library
UEDeployAndroid.UpdateProjectProperties:
====2017/9/5 15:08:32====UPDATING BUILD CONFIGURATION FILES====================================================
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for downloader_library…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for permission_library…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-ads-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-ads-lite-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-auth-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-auth-base-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-base-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-basement-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-clearcut-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-drive-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-games-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-gass-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-nearby-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-plus-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-tasks-9.8.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-compat-25.0.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-core-ui-25.0.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-core-utils-25.0.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-fragment-25.0.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-media-compat-25.0.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-v13-25.0.0…
UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-v4-25.0.0…
UEDeployAndroid.UpdateGameActivity:
==== Writing new GameActivity.java file to d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
UEDeployAndroid.MakeApk:
Copying new .so d:\Program Files\Epic Games\UE_4.17\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder…
UEDeployAndroid.RunCommandLineProgramWithException: Preparing native code for debugging…
UnrealPluginLanguage.ProcessPluginNode:
File d:\Program Files\Epic Games\UE_4.17/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/libvrapi.so copied to d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK/libs/armeabi-v7a/libvrapi.so
UnrealPluginLanguage.ProcessPluginNode: Copying libOVRPlugin.so
UnrealPluginLanguage.ProcessPluginNode:
File d:\Program Files\Epic Games\UE_4.17/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK/libs/armeabi-v7a/libOVRPlugin.so
UnrealPluginLanguage.ProcessPluginNode:
File d:\Program Files\Epic Games\UE_4.17/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar copied to d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK/libs/VrApi.jar
UnrealPluginLanguage.ProcessPluginNode:
File d:\Program Files\Epic Games\UE_4.17/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar copied to d:\Users\Unreal Projects\anderoid\Intermediate/Android/APK/libs/SystemUtils.jar
UEDeployAndroid.MakeApk:
====2017/9/5 15:09:50====PERFORMING FINAL APK PACKAGE OPERATION================================================
UEDeployAndroid.RunCommandLineProgramAndReturnResult: Making .apk with Ant… (note: it’s safe to ignore javac obsolete warnings)
[javac] ע: ijЩ???ļ?ʹ?û???ѹ?ʱ?? API??
[javac] ע: ?й???ϸ??Ϣ, ??ʹ?? -Xlint:deprecation ???±??롣

BUILD SUCCESSFUL
Total time: 3 minutes 11 seconds
AndroidPlatform.GetAaptPath: Using this aapt: C:/NVPACK/android-sdk-windows\build-tools\26.0.1\aapt.exe
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 shell “echo $EXTERNAL_STORAGE”
CommandUtils.Run: Run: Took 0.1120064s to run adb.exe, ExitCode=0
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 uninstall com.YourCompany.anderoid
adb: Failure - not installed for 0
adb:
CommandUtils.Run: Run: Took 0.8680497s to run adb.exe, ExitCode=0
CommandUtils.Run: Run: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe -s 47e706a77d04 install “d:\Users\Unreal Projects\anderoid\Binaries\Android\anderoid-armv7-es2.apk”
adb: 0%] /data/local/tmp/anderoid-armv7-es2.apk
adb: d:\Users\Unreal Projects\anderoid\Binaries\Android\anderoid-armv7-es2.apk: 1 file pushed. 4.5 MB/s (43054815 bytes in 9.178s)
adb: pkg: /data/local/tmp/anderoid-armv7-es2.apk
adb:
adb: Failure [INSTALL_CANCELED_BY_USER]
adb:
CommandUtils.Run: Run: Took 20.1621532s to run adb.exe, ExitCode=0
Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Installation of apk ‘d:\Users\Unreal Projects\anderoid\Binaries\Android\anderoid-armv7-es2.apk’ failed: [INSTALL_CANCELED_BY_USER]
在 AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
在 Project.Deploy(ProjectParams Params)
在 BuildCookRun.DoBuildCookRun(ProjectParams Params)
在 BuildCookRun.ExecuteBuild()
在 AutomationTool.BuildCommand.Execute()
在 AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands)
在 AutomationTool.Automation.Process(String] Arguments)
在 AutomationTool.Program.MainProc(Object Param)
在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
在 AutomationTool.Program.Main()
Program.Main: AutomationTool exiting with ExitCode=35 (Error_AppInstallFailed)
BUILD FAILED

Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Installation of apk ‘d:\Users\Unreal Projects\anderoid\Binaries\Android\anderoid-armv7-es2.apk’ failed: [INSTALL_CANCELED_BY_USER]

Hey,
That’s basically saying thet you cancelled the building process manually somewhere along the way. Have you tried rebuilding again?

Hello, thank you for your answer
My English is not very good. Use the translation software to answer your questions, please don’t mind
No manual cancellation. I tested it with an official scene. Does it have anything to do with mobile phones?

It might be that. Try to copy the apk to the phone manually and then install from there.

Mobile phone is the problem, I changed a cell phone on it, is the phone does not meet the requirements?

It is possible there is a security app on the phone requiring you accept the install which is interfering with Launch. Try packaging it and using the install batch file instead and see what happens.