Victory Plugin on Android Devices

Have been working on a game for a while with PC builds and testing. I am using Rama’s Victory Plugin. When I first started using it, I had to download the binaries for windows and put them into the correct folder. Now, I am trying to package my game for android and am running into some issues with Victory Plugin. I have tried to find solutions to this issue but most of them say wait for V4.8 (I’m on 4.10 …) or they have slightly different issues which either don’t apply, or I can’t figure out how to apply them to my situation.

Anyways, here is the error I am getting when trying to package my game or launch it via USB on my android device:

The lines where it fails:

LogPlayLevel: UnrealBuildTool: NDK version: 19, GccVersion: 4.8

LogPlayLevel: UnrealBuildTool: Compiling Native code with NDK API ‘android-19’

LogPlayLevel: UnrealBuildTool: Performing 1 actions (4 in parallel)

LogPlayLevel: UnrealBuildTool: [1/1] clang++.exe zescape-armv7-es2.so

LogPlayLevel: UnrealBuildTool: clang++.exe: error: no such file or directory: ‘C:/Program Files (x86)/Epic
Games/4.10/Engine/Plugins/VictoryPlugin/Binaries/Android/UE4-VictoryBPLibrary-armv7-es2.a’

LogPlayLevel: UnrealBuildTool: -------- End Detailed Actions Stats -----------------------------------------------------------

LogPlayLevel: UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Desktop\z-escape.git.0\Binaries\Android\zescape-armv7-es2.so

From what I’ve read on other posts and seen in their logs, UE4 should use Android NDK to compile the plugin for me, but it appears that isn’t happening? Or I could be misinterpreting the log.

EDIT: My project is mostly BP, just added an empty C++ to get the Victory plug in to work as that’s what I was directed to do previously. This happens both when I try to package the project for android, or launch it via USB.

Same here! (Bump)

Ok, I found a solution.

You have to prebuild the plugin for all your intended destination platforms.

Easiest way I found:
Copy the used Plugin with its Source Code to
/Your project/Plugins/The Plugin/

Now you should be able to use “Package Project” like you normally would.

Cheers!

After copying the VictoryPlugin folder to my project I have gotten some different errors.

UnrealBuildTool: Errors detected while compiling C:\Users\Seth\Desktop\Projects\z-escape.git.0\Intermediate\Build\BuildRules\zescapeModuleRules.dll:

MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: c:\Users\Seth\Desktop\Projects\z-escape.git.0\Plugins\VictoryPlugin\Source\VictoryBPLibrary\VictoryBPLibrary.Build.cs(5,14) : error CS0101: The namespace ‘’ already contains a definition for ‘VictoryBPLibrary’

MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: ERROR: UnrealBuildTool encountered an error while compiling source files

MainFrameActions: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 1.0197299s to run UnrealBuildTool.exe, ExitCode=5

MainFrameActions: Packaging (Android (ATC)): BuildCommand.Execute: ERROR: BUILD FAILED

Oh, I forgot, I deleted the VictoryBP Folder from the Engine/Plugins.

The error sounds like that would happen if the Plugin is found at two places at once.