Having issues on Porting blank project to android

I have ported games to my galaxy S5 for google cardboard before in 4.12. Now i have moved on to a new development project and i am running into an issue building the project. I have all the sdk, ndk, java, and such set correctly. Unfortunately i come up with this error now. I have included the build log. I am not 100% sure what i have done wrong so it fails like it does. Suggestions and help would be greatly appreciated.

Hello Pattonsguy,

By reading your log, the issues seems coming from the NDK:


UATHelper: Packaging (Android (All)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\NVPACK\android-sdk-windows\platforms\android-21\extras'.
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at System.IO.FileSystemEnumerableIterator`1.CommonInit()
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at System.IO.Directory.GetDirectories(String path)
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at UnrealBuildTool.AndroidAARHandler.AddRepositories(String RepositoryPath, String SearchPattern)
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.ExtractAARAndJARFiles(String EngineDir, String UE4BuildPath, List`1 NDKArches)
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
UATHelper: Packaging (Android (All)): UnrealBuildTool:    at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String] Arguments)
UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 2.1587397s to run UnrealBuildTool.exe, ExitCode=5

Can you show us your Android SDK configuration for UE?

Cheers! :wink: