[BUILD FAIL] Nativization build fails

Hy all,

I am trying to use the new nativization function in UE4.
I have tried several settings, Inclusive and Exclusive, Exclusive with BPs selected, Exclusive empty.
this error : error: unknown type name ‘UMG_API’ seems strange to me, any ideas?
Either way my build fails wtih 3 generated errors:

UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:/UNREALPROJECTSBACKUP/SneakySnake/Intermediate/Android_ETC2/NativizedAssets/Intermediate/Build/Android/UE4/Inc/NativizedAssets/NativizedAssets.generated.cpp(285,2) :  error: unknown type name 'UMG_API'
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:         UMG_API class UClass* Z_Construct_UClass_UUserWidget_NoRegister();
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:         ^
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:/UNREALPROJECTSBACKUP/SneakySnake/Intermediate/Android_ETC2/NativizedAssets/Intermediate/Build/Android/UE4/Inc/NativizedAssets/NativizedAssets.generated.cpp(285,10) :  error: expected unqualified-id
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:         UMG_API class UClass* Z_Construct_UClass_UUserWidget_NoRegister();
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:                 ^
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:/UNREALPROJECTSBACKUP/SneakySnake/Intermediate/Android_ETC2/NativizedAssets/Intermediate/Build/Android/UE4/Inc/NativizedAssets/NativizedAssets.generated.cpp(949,332) :  error: use of undeclared identifier 'Z_Construct_UClass_UUserWidget_NoRegister'
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:                         UProperty* NewProp_bpv__Widget_6_A694528F4AE0F6D24A78A59D0B274566__pf = new(EC_InternalUseOnlyConstructor, ReturnStruct, TEXT("Widget_6_A694528F4AE0F6D24A78A59D0B274566"), RF_Public|RF_Transient) UObjectProperty(CPP_PROPERTY_BASE(bpv__Widget_6_A694528F4AE0F6D24A78A59D0B274566__pf
, FTokenInfo__pf533497531), 0x0010000000000005, Z_Construct_UClass_UUserWidget_NoRegister());
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:

,

How exactly are you setting up your UMG that’s causing the errors within your project? Try to delete your Intermediate and Saved folders from your project folder. Let me know if that fixes the issue and if not, please provide your UMG set up. :slight_smile:

Hi ,

I have tried to delete the intermediate and Saved folders, it is kind of a routine already when something goes wrong :slight_smile: That did not solve the issue.
The strange thing is that the Project builds okay without nativization!
My UMG setup is a menu system, and pretty big, if you want I could share all the blueprints, but its a lot.

The reason I had asked was due to the error being located in your Intermediate folder relating to your UMG. Are you able to replicate this in a newly created project? Does this happen on any project, or just one with UMG when nativization is turned on?

Provide me with some reproduction steps so I can look into this further, I want to make sure I’m testing it correctly. :slight_smile:

Hey ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

Hi ,

Yes the problem is still not solved, however at the moment I dont have the time to pursue this issue. I will get back to you with more detail next week.

Thank you for the update. Please reply back once you have additional time to work on this issue.