My android project packages fine, but will get an external symbols error if I try to compile it

I’m using 4.21.1. One of my actor c++ classes #includes gvr.h from Engine\Source\ThirdParty\GoogleVR and calls one of the functions. I can package the project fine and run it on my android device, but if I try compiling the project in visual studio or in the unreal engine editor, I will get a resolved external symbol error. Is this a bug?