I’m using a Plugin called Firebase Analytics
I have created a function in a BlueprintFunctionLibrary and in there I’m just calling a function
UFirebaseAnalyticsSubsystem::GetBuiltinEventNames();
provided by the plugin and that is giving me the error!
I have added FirebaseAnalytics Dependency to PublicDependencyModuleNames field in my buil.cs file!
PublicDependencyModuleNames.AddRange(new string { “Core”, “CoreUObject”, “Engine”, “InputCore”, “PhysXVehicles”, “Niagara”, “UMG”, “PhysicsCore”, “FirebaseAnalytics” });
And I have also deleted Intermediate and Binaries folder from my project but Nothing works!
Please Help ME!
error:
>MyAnalyticsHelper.cpp.obj : error LNK2019: unresolved external symbol "public: static class TMap<enum EBuiltinEventNames,class FString,class FDefaultSetAllocator,struct TDefaultMapHashableKeyFuncs<enum EBuiltinEventNames,class FString,0> > __cdecl UFirebaseAnalyticsSubsystem::GetBuiltinEventNames(void)" (?GetBuiltinEventNames@UFirebaseAnalyticsSubsystem@@SA?AV?$TMap@W4EBuiltinEventNames@@VFString@@VFDefaultSetAllocator@@U?$TDefaultMapHashableKeyFuncs@W4EBuiltinEventNames@@VFString@@$0A@@@@@XZ) referenced in function "public: static void __cdecl UMyAnalyticsHelper::AddEventLevelStart(class FString const &)" (?AddEventLevelStart@UMyAnalyticsHelper@@SAXAEBVFString@@@Z)
1>E:\Unreal Projects\CarParking\Binaries\Win64\UE4Editor-CarParkig-0012.dll : fatal error LNK1120: 1 unresolved externals
.h file :
UCLASS()
class CARPARKIG_API UMyAnalyticsHelper : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "MyAnalyticsHelper")
static void AddEventLevelStart(const FString& LevelNameValue);
};
.cpp file :
#include "Analytics/MyAnalyticsHelper.h"
#include "FirebaseAnalyticsSubsystem.h"
void UMyAnalyticsHelper::AddEventLevelStart(const FString& LevelNameValue)
{
TMap<EBuiltinEventNames, FString> BuiltinEventNames;
BuiltinEventNames = UFirebaseAnalyticsSubsystem::GetBuiltinEventNames();
.....
......
}
Please Help Me!
Thanks