我已经在我的 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 dual Sim 与 Android 版本 5.0.2
更新
我检查了 project.properties,其中 android-target 为 19 (android-19),我在 NDK API 级别中提到了虚幻编辑器的项目设置。还是检测不出来。
新错误
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