question

4nton1ind avatar image
4nton1ind asked

Can not build project for android with Unreal SDK.

Hi!

When I try to launch my project on an android device with you SDK integrated, I get the following error:


Running UnrealHeaderTool "C:\Users\Anton\Dev\qcsp\qcsp.uproject" "C:\Users\Anton\Dev\qcsp\Intermediate\Build\Android\qcsp\Development\qcsp.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed C:/Users/Anton/Dev/qcsp/Plugins/PlayFab/Source/PlayFab/Classes/PlayFabClientModels.h(1323) : LogUObjectHash:Error: Ambiguous search, could be Enum /Script/AndroidDeviceProfileSelector.ESourceType or Enum /Script/PlayFab.ESourceType C:/Users/Anton/Dev/qcsp/Plugins/PlayFab/Source/PlayFab/Classes/PlayFabClientModels.h(1323) : You cannot use the raw enum name as a type for member variables, instead use TEnumAsByte or a C++11 enum class with an explicit underlying type (currently only uint8 supported).


I followed your instructions to integrate the SDK. Is this something you can fix?
sdks
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1807605288 avatar image 1807605288 ♦ commented ·

Can you please open your playfab.uplugin file in a text editor, and post it here as a reply? I'm looking for which SDK and version you're using, and that file should contain all the information I need.

0 Likes 0 ·
4nton1ind avatar image 4nton1ind 1807605288 ♦ commented ·

{ "FileVersion": 3, "FriendlyName": "PlayFabClientSDK", "Version": 0, "VersionName": "0.0.161003", "CreatedBy": "PlayFab and Joshua Lyons", "CreatedByURL": "https://playfab.com/", "DocsURL": "https://api.playfab.com/", "SupportURL": "https://community.playfab.com/index.html", "Category": "PlayFab", "Description": "PlayFab Blueprint SDK for Unreal Engine 4. Current API version: 0.0.161003", "WhitelistPlatforms": [ "Win64", "Win32", "Mac", "IOS", "Android" ], "Modules" : [ { "Name": "PlayFab", "Type": "Runtime", "LoadingPhase": "PreDefault" }, ] }

1 Like 1 ·
1807605288 avatar image 1807605288 ♦ 1807605288 ♦ commented ·

Ok, I have confirmed this issue. Thanks for reporting it.

I am working on a fix in our SdkGenerator, which should hopefully fix the problem permanently. That fix won't be published for at least 2 weeks.

If you're critically blocked, you can open PlayFabEnums.h, and rename the ESourceType enum defined there to EPfSourceType, and work through the compiler errors when building in Windows. Once you've properly renamed all references to the PlayFab ESourceType enum, it should work for you.

1 Like 1 ·

1 Answer

·
1807605288 avatar image
1807605288 answered

Thank you for your bug report.

I have resolved the issue internally. The change is going through our automated build/test system now.

The fix will likely be published Monday, October 31 on our regular build schedule.

If you are critically blocked and need a build faster, please reply here and I'll send you a one-time download link. (Make sure you have an email attached to your profile here)

UPDATE, this fix has been released:

https://api.playfab.com/releaseNotes/#161031

https://github.com/PlayFab/UnrealBlueprintSDK

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

4nton1ind avatar image 4nton1ind commented ·

Hi!
I am not critically blocked right now, but I'm looking forward to the new build. Thanks for the help!

0 Likes 0 ·
1807605288 avatar image 1807605288 ♦ commented ·

See update in answer.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.