我已成功在我的windows10 PC上安装CodeWorksforAndroid 1R6,以便将不真实的引擎文件执行到Android设备。
我已经将虚幻引擎FirstPersonExampleMap的starterkit(蓝图)文件放在android上执行。
启动器显示连接的Android设备。当我选择Android设备时,该过程开始,而在depolying我得到错误和BUILD失败。
请帮助解决问题。
错误 -
====17-04-2017 07:09:09====UPDATING BUILD CONFIGURATION FILES====================================================
LogPlayLevel: Error: Target id 'android-19' is not valid. Use 'android.bat list targets' to get the target ids.
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramWithException: Updating project.properties, local.properties, and build.xml for downloader_library...
LogPlayLevel: Error: Target id 'android-19' is not valid. Use 'android.bat list targets' to get the target ids.
LogPlayLevel: Error: Target id 'android-19' is not valid. Use 'android.bat list targets' to get the target ids.
我已经更新了项目设置中的android sdk,android ndk位置
我的Android手机是HTC One E9s双模拟Android版5.0.2
更新
我检查了project.properties,其中android-target是19(android-19),我在虚幻编辑器的项目设置中的NDK API Level中提到过。仍未检测到。
新错误
LogPlayLevel: ====17-04-2017 10:36:55====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: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:538: Application package '' must have a minimum of 2 segments.
LogPlayLevel: Total time: 7 seconds
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndReturnResult: Making .apk with Ant again to show errors
LogPlayLevel: Buildfile: C:\Users\Amul\Documents\Unreal Projects\MobFP\Intermediate\Android\APK\build.xml
LogPlayLevel: [getbuildtools] Using latest Build Tools: 24.0.0
LogPlayLevel: -set-mode-check:
LogPlayLevel: -set-debug-files:
LogPlayLevel: -check-env:
LogPlayLevel: [checkenv] Android SDK Tools Revision 24.4.1
LogPlayLevel: [checkenv] Installed at C:\NVPACK\android-sdk-windows
LogPlayLevel: -setup:
LogPlayLevel: [echo] Project Name: MobFP
LogPlayLevel: [gettype] Project Type: Application
LogPlayLevel: -set-debug-mode:
LogPlayLevel: -debug-obfuscation-check:
LogPlayLevel: -pre-build:
LogPlayLevel: -build-setup:
LogPlayLevel: [getbuildtools] Using latest Build Tools: 24.0.0
LogPlayLevel: [echo] Resolving Build Target for MobFP...
LogPlayLevel: [gettarget] Project Target: Android 4.4.2
LogPlayLevel: [gettarget] API level: 19
LogPlayLevel: BUILD FAILED
LogPlayLevel: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:538: Application package '' must have a minimum of 2 segments.
LogPlayLevel: Total time: 4 seconds
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Amul\Documents\Unreal Projects\MobFP\Intermediate/Android/APK/bin/MobFP-debug.apk'.
LogPlayLevel: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
LogPlayLevel: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
LogPlayLevel: at 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: at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
LogPlayLevel: at AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
LogPlayLevel: at Project.Deploy(ProjectParams Params)
LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel: at BuildCookRun.ExecuteBuild()
LogPlayLevel: at AutomationTool.BuildCommand.Execute()
LogPlayLevel: at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel: at AutomationTool.Automation.Process(String[] Arguments)
LogPlayLevel: at AutomationTool.Program.MainProc(Object Param)
LogPlayLevel: at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
LogPlayLevel: at AutomationTool.Program.Main()
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 264.869673
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error
答案 0 :(得分:1)