[Resolved] Build for Android fails

Hi,
I am in process of updating my game, in past few months whenever I was building and testing on PC it all works fine, but when I try to build for Android with VS2013 or with editor I get this error:

1>------ Build started: Project: JumpyFrogs, Configuration: Development_RocketGame Tegra-Android ------
1>  Parsing headers for JumpyFrogs
1>LogTextLocalizationManager : warning : The selected culture 'sl_SI' is not available; falling back to 'en'
1>  Reflection code generation finished for JumpyFrogs and took 4,893
1>  Compiling with NDK API 'android-19'
1>  Performing 3 actions (max 4 parallel jobs)
1>  [1/3] clang++.exe JumpyFrogs.generated.cpp
1>  [2/3] clang++.exe JumpyFrogsGameMode.cpp
1>  In file included from C:/Users/Jurif/Documents/Unreal Projects/JumpyFrogs 4.3 - 2/Source/JumpyFrogs/JumpyFrogsGameMode.cpp:4:
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(94,8): error : expected ')'
1>          (UClass*)SlotBP;
1>                 ^
1>  C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(94,1) :  note: to match this '
1>          (UClass*)SlotBP;
1>          ^
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(94,2): error : C++ requires a type specifier for all declarations
1>          (UClass*)SlotBP;
1>          ~^
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(94,10): error : expected ';' at end of declaration list
1>          (UClass*)SlotBP;
1>                   ^
1>                   ;
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(95,8): error : expected ')'
1>          (UClass*)FrogBP;
1>                 ^
1>  C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(95,1) :  note: to match this '
1>          (UClass*)FrogBP;
1>          ^
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(95,2): error : C++ requires a type specifier for all declarations
1>          (UClass*)FrogBP;
1>          ~^
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(95,2): error : duplicate member 'UClass'
1>  C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(94,2) :  note: previous declaration is here
1>          (UClass*)SlotBP;
1>           ^
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(95,10): error : expected ';' at end of declaration list
1>          (UClass*)FrogBP;
1>                   ^
1>                   ;
1>C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(96,8): error : expected ')'
1>          (UClass*)LP01BP;
1>                 ^
1>  C:\Users\Jurif\Documents\Unreal Projects\JumpyFrogs 4.3 - 2\Source\JumpyFrogs\JumpyFrogsGameMode.h(96,1) :  note: to match this '
1>          (UClass*)LP01BP;

And the list goes on for as many UClass property’s I have in the code,
in the JumpyFrogsGameMode.h I have these pointer variables:

	(UClass*)SlotBP;
	(UClass*)FrogBP;
	(UClass*)LP01BP;
	(UClass*)LP02BP;
	(UClass*)LP03BP;
	(UClass*)LP04BP;
	(UClass*)LP05BP;
and so on....

Then in .cpp constuctor I assign the Blueprints like this:

static ConstructorHelpers::FObjectFinder <UBlueprint> FrogOb(TEXT("Blueprint'/Game/FrogChar/Blueprints/FrogBP.FrogBP'"));
	if (FrogOb.Object != NULL)
	{
		FrogBP = (UClass*)FrogOb.Object->GeneratedClass;
	}
	static ConstructorHelpers::FObjectFinder <UBlueprint> SlotOb(TEXT("Blueprint'/Game/Blueprints/EmptySlotBP.EmptySlotBP'"));
	if (SlotOb.Object != NULL)
	{
		SlotBP = (UClass*)SlotOb.Object->GeneratedClass;
	}

Obviously there’s a problem with using (UClass*), but am not sure how to tackle this, so I wanted to ask first before I start rewriting anything. Any ideas? Thanks!

The solution was to change declarations in the .h file:

  (UClass*)SlotBP;
  (UClass*)FrogBP;
  (UClass*)LP01BP;
  (UClass*)LP02BP;
    and so on...

to this:

UPROPERTY(EditDefaultsOnly, Category = BlueprintedStuff)
		UClass* SlotBP;
UPROPERTY(EditDefaultsOnly, Category = BlueprintedStuff)
		UClass* FrogBP;
UPROPERTY(EditDefaultsOnly, Category = BlueprintedStuff)
		UClass* LP01BP;
UPROPERTY(EditDefaultsOnly, Category = BlueprintedStuff)
		UClass* LP02BP;
and so on...

Now it compiles fine.