Can't launch and build for Android

Hello there!
I started to fix this problem month ago, but don’t fix it by date.
I’ve already read about hundred different questions (like my), but solutions doesn’t work for me. So I decided to write about my problem here.
I’ve created a new blank blueprint project in UE4 without starter content. In the project settings (Android SDK section) I writed locations for sdk, ndk, ant and java. I installed them from websites located here: Android Development Basics for Unreal Engine | Unreal Engine 5.1 Documentation
I set SDK API Level as “matchndk” and NDK API Level as “” (because I want to test my game on device with Android 4.4.2).
When I connect device to PC (“adb devices” command in cmd.exe shows that the device is connected) and launch with “Launch” button, output log shows me next lines:

LogPlayLevel: ====18.04.2015 0:54:55====PREPARING TO MAKE APK=================================================================
LogPlayLevel: Building Java with SDK API level ''
LogPlayLevel: UEDeployAndroid.MakeApk: AndroidManifest.xml that was generated is different than last build, forcing repackage.
LogPlayLevel: UEDeployAndroid.MakeApk: Performing complete package - wiping D:\Programs\HelloAnd\Intermediate/Android/APK, except for predexedLibs
LogPlayLevel: UEDeployAndroid.MakeApk: bPackageDataInsideApk = False
LogPlayLevel: UEDeployAndroid.UpdateProjectProperties:
LogPlayLevel: ====18.04.2015 0:54:56====UPDATING BUILD CONFIGURATION FILES====================================================
LogPlayLevel: ERROR: SWT folder 'lib\x86_64' does not exist.
LogPlayLevel: Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml...
LogPlayLevel: ERROR: SWT folder 'lib\x86_64' does not exist.
LogPlayLevel: Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====18.04.2015 0:55:00====PREPARING NATIVE CODE=================================================================
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in mscorlib: Could not find file 'D:\Programs\HelloAnd\Intermediate/Android/APK/libs/armeabi-v7a/libUE4.so'.
LogPlayLevel: Stacktrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
LogPlayLevel:    at System.IO.FileSystemInfo.set_Attributes(FileAttributes value)
LogPlayLevel:    at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
LogPlayLevel:    at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(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 BuildCommand.Execute()
LogPlayLevel:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    at AutomationTool.Automation.Process(String[] CommandLine)
LogPlayLevel:    at AutomationTool.Program.MainProc(Object Param)
LogPlayLevel:    at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
LogPlayLevel:    at AutomationTool.Program.Main()
LogPlayLevel: Program.Main: ERROR: Could not find file 'D:\Programs\HelloAnd\Intermediate/Android/APK/libs/armeabi-v7a/libUE4.so'.
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: copying UAT log files...
LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully.
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 8.273107
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error

Please, help me, I’m trying to fix the problem for a long time.
P.S.: sorry for my bad English, I hope that you understant me.

Ok, I fix it. I just try to write path to sdk, ndk, jdk and ant from NVPACK. Question is closed.

That’s good, because I’ve never seen this problem before and was feeling helpless!

I’m running into this same problem unfortunately. I would love to get clarification on exactly what led to fixing this problem.

Any additional details would be appreciated. Thank you!

Hi. Actual for me

http://i.imgur.com/pEx54Zt.png

20:10:08====UPDATING BUILD CONFIGURATION FILES====================================================
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: ERROR: SWT folder 'lib\x86_64' does not exist.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: Updating project.properties, local.properties, and build.xml...
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: ERROR: SWT folder 'lib\x86_64' does not exist.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: ERROR: SWT folder 'lib\x86_64' does not exist.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: Updating project.properties, local.properties, and build.xml...
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: ERROR: SWT folder 'lib\x86_64' does not exist.
MainFrameActions: Packaging (Android (ASTC)): UnrealBuildTool: Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.

Having the same problem. Compiled fine until I upgrades to 4.11.2. My paths are already defined before this, but I’m continuing to investigate

I’ve tried re-verifying the engine, re-installing the andriod packages didn’t help, resetting the paths in the andriod sdk window didn’t help. I’m in Beta, I need a solution for this.

check this

yeah, saeedc, we had previously working configurations that stopped working with the 4.11.2 hotfix.That link shows how to set up your SDK correctly, but we HAD our SDK set up correctly because it was building before the hotfix.

but the good news is mine sort of magically started working again.Hopefully everyone else’s is back to working now too.

I’m having this issue when trying to compile for development. It was working before … all I did was remove my keystore information so that I could share the project with others. SDK paths are correct.

Fixed:

  • Ran Chooser.exe within my AndroidWorks directory.
  • Set to custom option in top right.
  • Updated/installed the following: Android Base SDK, Android Platform Tools, Android Build Tools, Android SDK Support Library, Android SDK Support Repository Library.

actually for me when I was trying to package a google VR project as ATC, put a extra enviroment variable ANDROID_SWT like this works for me, at least I have success in package proccess, but the batch file Instalations FAILs because Error mencios that SD card is needed to instal APK, and the funny thing my google nexus 5 don’t have a SD card or external slot for it. Someone have an Idea how install the QUick tutorial app for Google VR?