Error LNK1181 and error MSB3073 while building android project,Help! i got 2 errors in visual studio (LNK1181 cannot open input file)(MSB3073)

I had the same problem, it was caused by line PrivateDependencyModuleNames.Add("AndroidAdvertising"); in *build.cs file. I solved it by adding it only for Android platform:

if (Target.Platform == UnrealTargetPlatform.Android) {
  PrivateDependencyModuleNames.Add(AndroidAdvertising);
}
2 Likes