How do I go about doing this as when I tried, I keep getting a setLicenseKey error while trying to compile and build a solution.
I'm guessing that solution is old as the SDK no longer contains that function. The engine now uses hardware-generated license files. Try removing or commenting the function call.
Welcome to the forum.