Cannot not be compiled. Try rebuilding from source mannually! - Giving errors in Visual Studio

I solved it! I was using ads on my project as it was a mobile game.

I didn’t specified target platform for advertisement that’s why it was giving the errors.
The code looks like this:

if (Target.Platform == UnrealTargetPlatform.Android)
{
PrivateDependencyModuleNames.AddRange(new string {
“OnlineSubsystemGooglePlay”, “AndroidAdvertising” });
}
this forum helped me solving my errors:

@3dRaven Thanks bro staying with in my hard times, appreciate it!

I yet have to check If that plugin solves Play Store Android 12 issue. Did your one worked?