[4.8] Android build fails

After updating from 4.7.6, I now get this error when trying to build to my Android device:

CommandUtils.Run: Run: C:\Program Files\Unreal Engine\4.8\Engine\Binaries\DotNET\UnrealBuildTool.exe ihmj Android Development  C:\Users\Gage\Desktop\i-hate-my-job\ihmj.uproject  -noxge -rocket -NoHotReloadFromIDE -ignorejunk
UnrealBuildTool: Compiling Native code with NDK API 'android-19'
UnrealBuildTool: Performing 2 actions (4 in parallel)
UnrealBuildTool: [1/2] clang++.exe ihmj.generated.cpp [armv7-es2]
UnrealBuildTool: Global is external, but doesn't have external or dllimport or weak linkage!
UnrealBuildTool: C:\Program Files\Unreal Engine\4.8\Engine\Source\void(%class.APhotonLBClient*, i8*, ...)* @_ZThn568_N15APhotonLBClient4infoEPKcz
UnrealBuildTool: invalid linkage type for function declaration
UnrealBuildTool: C:\Program Files\Unreal Engine\4.8\Engine\Source\void(%class.APhotonLBClient*, i8*, ...)* @_ZThn568_N15APhotonLBClient4infoEPKcz
UnrealBuildTool: Global is external, but doesn't have external or dllimport or weak linkage!
UnrealBuildTool: C:\Program Files\Unreal Engine\4.8\Engine\Source\void(%class.APhotonLBClient*, i8*, ...)* @_ZThn568_N15APhotonLBClient4warnEPKcz
UnrealBuildTool: invalid linkage type for function declaration
UnrealBuildTool: C:\Program Files\Unreal Engine\4.8\Engine\Source\void(%class.APhotonLBClient*, i8*, ...)* @_ZThn568_N15APhotonLBClient4warnEPKcz
UnrealBuildTool: Global is external, but doesn't have external or dllimport or weak linkage!
UnrealBuildTool: C:\Program Files\Unreal Engine\4.8\Engine\Source\void(%class.APhotonLBClient*, i8*, ...)* @_ZThn568_N15APhotonLBClient5errorEPKcz
UnrealBuildTool: invalid linkage type for function declaration
UnrealBuildTool: C:\Program Files\Unreal Engine\4.8\Engine\Source\void(%class.APhotonLBClient*, i8*, ...)* @_ZThn568_N15APhotonLBClient5errorEPKcz
UnrealBuildTool: Broken module found, compilation aborted!
UnrealBuildTool: This application has requested the Runtime to terminate it in an unusual way.
UnrealBuildTool: Please contact the application's support team for more information.
UnrealBuildTool: clang++.exe: error: clang frontend command failed with exit code 3 (use -v to see invocation)
UnrealBuildTool: -------- End Detailed Actions Stats -----------------------------------------------------------
UnrealBuildTool: Total build time: 12.90 seconds
CommandUtils.Run: Run: Took 13.0200894s to run UnrealBuildTool.exe, ExitCode=5
ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:5): C:\Program Files\Unreal Engine\4.8\Engine\Binaries\DotNET\UnrealBuildTool.exe ihmj Android Development  C:\Users\Gage\Desktop\i-hate-my-job\ihmj.uproject  -noxge -rocket -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool.txt'
BuildCommand.Execute: ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:5): C:\Program Files\Unreal Engine\4.8\Engine\Binaries\DotNET\UnrealBuildTool.exe ihmj Android Development  C:\Users\Gage\Desktop\i-hate-my-job\ihmj.uproject  -noxge -rocket -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool.txt'

Something about the linker??

The class it calls into question, APhotonLBClient, compiles and works just fine in the engine right now. In fact, there are no problems whatsoever in the engine.

This only happens when building to Android.

I tried reinstalling the Android SDK, to no avail. Really kinda stumped with what to do beyond that.

Perhaps I could move the code over to a new class? I’d rather know if I can do something about it first than try that. It seems like that wouldn’t really matter considering this an Android-specific error. Is there some change with Android build settings that I need to now take into account?

So… what do?

I tried switching the code over to a new class. Didn’t work. Obviously something is different now with how Android builds, which is preventing Photon and its libraries from linking in properly

It was just a weird thing with some Photon code that for some reason doesn’t work with Android since 4.8. If anyone happens to run into this, and you are using code from the Photon LoadBalancing demo, it’s an issue with the BaseView logs (info, warn, error) and their execution in your Photon class’s cpp definition of them. Apparently 4.8 UE4+Android doesn’t like it now. It’s not too hard to just change the way it’s printing those strings