I want to package my project with engine source build, I did steps follow this link:https://answers.unrealengine.com/questions/86963/how-to-setup-android-platform.html
First I build UE4 target for Development Editor > Win64 successful, then I build UE4 target for Development > Win64
successful, but build UE4 target for Development > Android failed.
Env: VS2015 update3, UE4.18.1, Windows 10 pro.
build log:
10> Cleaning up files based on template dir C:\UnrealEngine-4.18.1-release\Engine\Build\Android\src\com\YourCompany\UE4Game
10> C:\UnrealEngine-4.18.1-release\Engine\Binaries\Android\UE4Game-armv7-es2.apk is out of date due to newer input file C:\UnrealEngine-4.18.1-release\Engine\Binaries\Android\UE4Game-armv7-es2.so
10> UPL Init: armeabi-v7a
10> Android Permission Plugin Init
10> Google Cloud Messaging init
10> GCMClientSenderID set: false
10> GearVR init
10> Oculus Signature Files (osig) will be removed from APK
10> Android Voice init
10> AndroidAdvertising init
10> Including AdMob support. Disable in Android project settings if you do not need to use it.
10> Looking for OBB.
10> Fixing minSdkVersion; requires minSdkVersion of 14 with Gradle based on active plugins
10> bPackageDataInsideApk = False
10> Added repository: D:\sdks\NVPACK_new\android-sdk-windows\extras\android\m2repository
10> AARImports: com.google.android.gms, play-services-auth, 11.0.4
10> AARImports: com.google.android.gms, play-services-games, 11.0.4
10> AARImports: com.google.android.gms, play-services-nearby, 11.0.4
10> AARImports: com.google.android.gms, play-services-plus, 11.0.4
10> AARImports: com.android.support, support-v13, 25.2.0
10> AARImports: com.google.android.gms, play-services-ads, 11.0.4
10>EXEC : error : System.IO.DirectoryNotFoundException: 未能找到路径“C:\UnrealEngine-4.18.1-release\Engine\Intermediate\Android\APK\gradle\app\aar-imports.gradle”的一部分。
10> 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
10> 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10> 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10> 在 System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
10> 在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
10> 在 System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
10> 在 UnrealBuildTool.UEDeployAndroid.GenerateGradleAARImports(String EngineDir, String UE4BuildPath, List`1 NDKArches) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:行号 3843
10> 在 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) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:行号 2972
10> 在 UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildDeployTarget InTarget) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:行号 3472
10> 在 UnrealBuildTool.AndroidPlatform.Deploy(UEBuildDeployTarget Target) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEBuildAndroid.cs:行号 521
10> 在 UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:行号 1718
10> Total build time: 5.60 seconds (NoActionsToExecute executor: 0.00 seconds)
10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.targets(41,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Game Android Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.