[ANDROID] Cannot find game content

I have a project working well in my pc(editor). However, when I tyr to lunch it inside my samsung tablet, it cannot resolve the game content path for a widget. It throws the error message below:

LogUObjectGlobals:Warning: Failed to find object 'Blueprint /Game/Widget/MapLoadingWidget.MapLoadingWidget'

The problem occurs in the androi device only.

Update

The code where I use the widget:

UBlueprint* WidgetBP = Cast<UBlueprint>(StaticLoadObject(UBlueprint::StaticClass(), NULL, TEXT("/Game/Widget/MapCameraWidget.MapCameraWidget"), NULL, LOAD_None, NULL));
CameraWidget = CreateWidget<UMapCameraWidget>(GameMode->GetWorld()->GetFirstPlayerController(), WidgetBP->GeneratedClass);

Hey ErayT,

Could you provide us with the full log from the error message so we can take a look at the context. Perhaps a few screenshots of the blueprint or widget you are attempting to load as well.

Thanks,

Have you packaged your project for android or have you Launched to the device from the editor?
launching to the device will only launch the current map from the editor for testing.
there is a way to launch all the maps and content by editing the ‘DefaultEditor.ini’ file by adding
this works for me on iOS

[AlwaysCookMaps]

+Map=/Game/Maps/yourMap1

+Map=/Game/Maps/yourMap2

+Map=/Game/Maps/yourMap3

Ok,

Here is the solution. The problem was a bit misleading. It was related with how I try to create the widget. Because it wasn’t run on the editor but an android device, it wasn’t able to get the generated widget instance. Therefore, it was able to run in the editor but it has caused problems. The proper way to create an instance of the widget is the below:

I have changed this:

UBlueprint* WidgetBP = Cast<UBlueprint>(StaticLoadObject(UBlueprint::StaticClass(), NULL, TEXT("/Game/Widget/MapCameraWidget.MapCameraWidget"), NULL, LOAD_None, NULL));
CameraWidget = CreateWidget<UMapCameraWidget>(GameMode->GetWorld()->GetFirstPlayerController(), WidgetBP->GeneratedClass);

To:

UClass* WidgetClass = StaticLoadClass(UMapCameraWidget::StaticClass(), NULL, TEXT("/Game/Widget/MapCameraWidget.MapCameraWidget_C"), NULL, LOAD_None, NULL);
CameraWidget = CreateWidget(GetWorld()->GetFirstPlayerController(), WidgetClass);