Hi,
I recently tried to create an application on Android using Unreal Engine, but despite:
The installation of SDK
Using the developer mode on my LG G5with a Windows 10, which is detected when using adb devices.
Checking all paths with Unreal Engine and drivers for my smartphone
An error when creating the APK occurs, whether in package or launch.
I couldn’t find the cause of the problem despite a lot of research on the internet:/
Thank you very much for your answers and I attach below a maximum of screenshot and complete logs.
LogPlayLevel: BuildCookRun.SetupParams: Setting up ProjectParams for E:\U7E\MyProjectAndroid\MyProjectAndroid.uproject
LogPlayLevel: Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND STARTED **********
LogPlayLevel: Project.WriteStageCommandline: Creating UE4CommandLine.txt
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 4.802434
LogPlayLevel: Project.CreateStagingManifest: Creating Staging Manifest...
LogPlayLevel: Project.CleanStagingDirectory: Cleaning Stage Directory: E:\U7E\MyProjectAndroid\Saved\StagedBuilds\Android_ASTC
LogPlayLevel: Project.CopyManifestFilesToStageDir: Copying NonUFSFiles to staging directory: E:\U7E\MyProjectAndroid\Saved\StagedBuilds\Android_ASTC
LogPlayLevel: Project.CopyManifestFilesToStageDir: Copying DebugFiles to staging directory: E:\U7E\MyProjectAndroid\Saved\StagedBuilds\Android_ASTC
LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FTcpMessageTransportConnection///Thread_1e58_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FTcpMessageTransportConnection///Thread_2e70_0///####STATCAT_Advanced####
LogPlayLevel: Project.CopyManifestFilesToStageDir: Copying UFSFiles to staging directory: E:\U7E\MyProjectAndroid\Saved\StagedBuilds\Android_ASTC
LogPlayLevel: CommandUtils.Run: Run: E:\Android\android-sdk-windows\platform-tools\adb.exe -s LGH850e0cd483f shell "echo $EXTERNAL_STORAGE"
LogPlayLevel: CommandUtils.Run: Run: Took 0,1499366s to run adb.exe, ExitCode=0
LogPlayLevel: CommandUtils.Run: Run: E:\Android\android-sdk-windows\platform-tools\adb.exe -s LGH850e0cd483f pull /sdcard/UE4Game/MyProjectAndroid/Manifest_UFSFiles_Android.txt "E:\U7E\MyProjectAndroid\Saved\StagedBuilds\Android_ASTC\Manifest_UFSFiles_Android.txt_LGH850e0cd483f"
LogPlayLevel: CommandUtils.Run: Run: Took 0,1079639s to run adb.exe, ExitCode=1
LogPlayLevel: Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND COMPLETED **********
LogPlayLevel: Project.Package: ********** PACKAGE COMMAND STARTED **********
LogPlayLevel: Project.Package: ********** PACKAGE COMMAND COMPLETED **********
LogPlayLevel: Project.Deploy: ********** DEPLOY COMMAND STARTED **********
LogPlayLevel: CommandUtils.Run: Run: E:\Android\android-sdk-windows\platform-tools\adb.exe -s LGH850e0cd483f shell getprop ro.product.cpu.abi
LogPlayLevel: CommandUtils.Run: Run: Took 0,1474623s to run adb.exe, ExitCode=0
LogPlayLevel: CommandUtils.Run: Run: E:\Android\android-sdk-windows\platform-tools\adb.exe -s LGH850e0cd483f shell dumpsys SurfaceFlinger
LogPlayLevel: CommandUtils.Run: Run: Took 0,1569564s to run adb.exe, ExitCode=0
LogPlayLevel: AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\AndroidPermission\Source\AndroidPermission\AndroidPermission_APL.xml
LogPlayLevel: AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\GearVR\Source\GearVR\GearVR_APL.xml
LogPlayLevel: AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\GearVR\Source\GearVRController\GearVRController_APL.xml
LogPlayLevel: AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Plugins\Runtime\GoogleCloudMessaging\Source\GoogleCloudMessaging\GoogleCloudMessaging_UPL.xml
LogPlayLevel: AndroidPlatform.CollectPluginDataPaths: AndroidPlugin: Source\Runtime\Online\Voice\AndroidVoiceImpl_UPL.xml
LogPlayLevel: UnrealPluginLanguage..ctor:
LogPlayLevel: UPL: Engine\Plugins/Runtime/AndroidPermission/Source/AndroidPermission/AndroidPermission_APL.xml
LogPlayLevel: UnrealPluginLanguage..ctor:
LogPlayLevel: UPL: Engine\Plugins/Runtime/GearVR/Source/GearVR/GearVR_APL.xml
LogPlayLevel: UnrealPluginLanguage..ctor:
LogPlayLevel: UPL: Engine\Plugins/Runtime/GearVR/Source/GearVRController/GearVRController_APL.xml
LogPlayLevel: UnrealPluginLanguage..ctor:
LogPlayLevel: UPL: Engine\Plugins/Runtime/GoogleCloudMessaging/Source/GoogleCloudMessaging/GoogleCloudMessaging_UPL.xml
LogPlayLevel: UnrealPluginLanguage..ctor:
LogPlayLevel: UPL: Engine\Source/Runtime/Online/Voice/AndroidVoiceImpl_UPL.xml
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====12/11/2018 19:15:45====PREPARING TO MAKE APK=================================================================
LogPlayLevel: Building Java with SDK API level 'android-24'
LogPlayLevel: UEDeployAndroid.PatchAntBatIfNeeded:
LogPlayLevel: Patching ant.bat to work around commandline length limit (using unused drive letter Z:)
LogPlayLevel: Using package name: 'com.YourCompany.MyProjectAndroid'
LogPlayLevel: UEDeployAndroid.WriteJavaOBBDataFile:
LogPlayLevel: ==== Writing to OBB data file E:\U7E\MyProjectAndroid\Build\Android\src\com\YourCompany\MyProjectAndroid\OBBData.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to shim file E:\U7E\MyProjectAndroid\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to template target file E:\U7E\MyProjectAndroid\Build\Android\src\com\YourCompany\MyProjectAndroid\AlarmReceiver.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to template target file E:\U7E\MyProjectAndroid\Build\Android\src\com\YourCompany\MyProjectAndroid\DownloaderActivity.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to template target file E:\U7E\MyProjectAndroid\Build\Android\src\com\YourCompany\MyProjectAndroid\OBBDownloaderService.java ====
LogPlayLevel: UEDeployAndroid.MakeApk: Cleaning up files based on template dir E:\U7E\MyProjectAndroid\Build\Android\src\com\YourCompany\MyProjectAndroid
LogPlayLevel: UEDeployAndroid.MakeApk: Application display name is different than last build, forcing repackage.
LogPlayLevel: UnrealPluginLanguage.Init: UPL Init: armeabi-v7a
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: Android Permission Plugin Init
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: GearVR init
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: Oculus Signature Files (osig) will be removed from APK
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: GearVRController init
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: Google Cloud Messaging init
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: GCMClientSenderID set: false
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: Android Voice init
LogPlayLevel: UEDeployAndroid.RequiresOBB: APK contains data.
LogPlayLevel: UEDeployAndroid.MakeApk: Performing complete package - wiping E:\U7E\MyProjectAndroid\Intermediate/Android/APK, except for predexedLibs
LogPlayLevel: UEDeployAndroid.MakeApk: bPackageDataInsideApk = False
LogPlayLevel: AndroidAARHandler.AddRepositories: Added repository: E:\Android\android-sdk-windows\extras\google\m2repository
LogPlayLevel: AndroidAARHandler.AddRepositories: Added repository: E:\Android\android-sdk-windows\extras\android\m2repository
LogPlayLevel: AndroidAARHandler.AddRepositories: Added repository: E:\Unreal Engine\UNreal Engine\UE_4.16\Engine\Source\ThirdParty\Android\extras\google\m2repository
LogPlayLevel: AndroidAARHandler.AddRepositories: Added repository: E:\Unreal Engine\UNreal Engine\UE_4.16\Engine\Source\ThirdParty\Android\extras\android\m2repository
LogPlayLevel: UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-ads, 9.2.0
LogPlayLevel: UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-auth, 9.2.0
LogPlayLevel: UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-games, 9.2.0
LogPlayLevel: UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
LogPlayLevel: UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-plus, 9.2.0
LogPlayLevel: UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.android.support, support-v13, 25.0.0
LogPlayLevel: AndroidAARHandler.AddNewAAR: AAR: support-v4: 25.0.0 newer than 23.0.0
LogPlayLevel: AndroidAARHandler.AddNewJAR: AAR: support-annotations: 25.0.0 newer than 23.0.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AARs
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-lite-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-basement-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-base-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-tasks-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-clearcut-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-gass-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-base-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-games-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-drive-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-nearby-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR play-services-plus-9.2.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-v13-25.0.0
LogPlayLevel: AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => E:\U7E\MyProjectAndroid\Intermediate\Android\APK\JavaLibs\support-v13-25.0.0\libs\support-v13-25.0.0-internal_impl-25.0.0..jar
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-v4-25.0.0
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-compat-25.0.0
LogPlayLevel: AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => E:\U7E\MyProjectAndroid\Intermediate\Android\APK\JavaLibs\support-compat-25.0.0\libs\support-compat-25.0.0-internal_impl-25.0.0..jar
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-media-compat-25.0.0
LogPlayLevel: AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => E:\U7E\MyProjectAndroid\Intermediate\Android\APK\JavaLibs\support-media-compat-25.0.0\libs\support-media-compat-25.0.0-internal_impl-25.0.0..jar
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-core-utils-25.0.0
LogPlayLevel: AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => E:\U7E\MyProjectAndroid\Intermediate\Android\APK\JavaLibs\support-core-utils-25.0.0\libs\support-core-utils-25.0.0-internal_impl-25.0.0..jar
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-core-ui-25.0.0
LogPlayLevel: AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => E:\U7E\MyProjectAndroid\Intermediate\Android\APK\JavaLibs\support-core-ui-25.0.0\libs\support-core-ui-25.0.0-internal_impl-25.0.0..jar
LogPlayLevel: AndroidAARHandler.ExtractAARs: Extracting AAR support-fragment-25.0.0
LogPlayLevel: AndroidAARHandler.UnzipFiles: Changed FileName libs/internal_impl-25.0.0.jar => E:\U7E\MyProjectAndroid\Intermediate\Android\APK\JavaLibs\support-fragment-25.0.0\libs\support-fragment-25.0.0-internal_impl-25.0.0..jar
LogPlayLevel: AndroidAARHandler.CopyJARs: Copying JAR support-annotations-25.0.0.jar
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====12/11/2018 19:17:01====PREPARING NATIVE CODE=================================================================
LogPlayLevel: UEDeployAndroid.RequiresOBB: APK contains data.
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode: Copying permission_library directory to staging before build
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode:
LogPlayLevel: Directory E:\Unreal Engine\UNreal Engine\UE_4.16/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to E:\U7E\MyProjectAndroid\Intermediate/Android/APK/JavaLibs/permission_library
LogPlayLevel: UEDeployAndroid.UpdateProjectProperties:
LogPlayLevel: ====12/11/2018 19:17:02====UPDATING BUILD CONFIGURATION FILES====================================================
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for downloader_library...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for permission_library...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-ads-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-ads-lite-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-auth-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-auth-base-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-base-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-basement-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-clearcut-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-drive-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-games-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-gass-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-nearby-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-plus-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for play-services-tasks-9.2.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-compat-25.0.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-core-ui-25.0.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-core-utils-25.0.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-fragment-25.0.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-media-compat-25.0.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-v13-25.0.0...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for support-v4-25.0.0...
LogPlayLevel: UEDeployAndroid.UpdateGameActivity:
LogPlayLevel: ==== Writing new GameActivity.java file to E:\U7E\MyProjectAndroid\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: Copying new .so E:\Unreal Engine\UNreal Engine\UE_4.16\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder...
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Preparing native code for debugging...
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode:
LogPlayLevel: File E:\Unreal Engine\UNreal Engine\UE_4.16/Engine/Source/ThirdParty/Oculus/OculusMobile/SDK_1_0_3/Libs/armeabi-v7a/libvrapi.so copied to E:\U7E\MyProjectAndroid\Intermediate/Android/APK/libs/armeabi-v7a/libvrapi.so
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode:
LogPlayLevel: File E:\Unreal Engine\UNreal Engine\UE_4.16/Engine/Source/ThirdParty/Oculus/OculusMobile/SDK_1_0_3/Libs/VrApi.jar copied to E:\U7E\MyProjectAndroid\Intermediate/Android/APK/libs/VrApi.jar
LogPlayLevel: UnrealPluginLanguage.ProcessPluginNode:
LogPlayLevel: File E:\Unreal Engine\UNreal Engine\UE_4.16/Engine/Source/ThirdParty/Oculus/OculusMobile/SDK_1_0_3/Libs/SystemUtils.jar copied to E:\U7E\MyProjectAndroid\Intermediate/Android/APK/libs/SystemUtils.jar
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====12/11/2018 19:18:37====PERFORMING FINAL APK PACKAGE OPERATION================================================
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndReturnResult: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings)
LogPlayLevel: BUILD FAILED
LogPlayLevel: Z:\build.xml:69: The following error occurred while executing this line:
LogPlayLevel: Z:\custom_rules.xml:18: SDK does not have any Build Tools installed.
LogPlayLevel: Total time: 1 second
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: System.IO.DirectoryNotFoundException: Impossible de trouver une partie du chemin d'accès 'E:\U7E\MyProjectAndroid\Intermediate/Android/APK/bin/MyProjectAndroid-debug.apk'.
LogPlayLevel: à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
LogPlayLevel: à System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
LogPlayLevel: à UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir)
LogPlayLevel: à UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
LogPlayLevel: à AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
LogPlayLevel: à Project.Deploy(ProjectParams Params)
LogPlayLevel: à BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel: à BuildCookRun.ExecuteBuild()
LogPlayLevel: à AutomationTool.BuildCommand.Execute()
LogPlayLevel: à AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel: à AutomationTool.Automation.Process(String] Arguments)
LogPlayLevel: à AutomationTool.Program.MainProc(Object Param)
LogPlayLevel: à AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
LogPlayLevel: à AutomationTool.Program.Main()
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 371.686601
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error