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

**URL:** <https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204>\
**Category:** C++\
**Tags:** unreal-engine, crash, editor, question\
**Created:** [May 11, 2023, 6:31am UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204 "2023-05-11T06:31:24Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Anqeror](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anqeror](https://forums.unrealengine.com/u/Anqeror)\
**Post date:** [May 11, 2023, 3:34pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/23 "2023-05-11T15:34:22Z")

</div>

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:

> [@Error LNK1181 and error MSB3073 while building android project,Help! i got 2 errors in visual studio (LNK1181 cannot open input file)(MSB3073)](https://forums.unrealengine.com/t/error-lnk1181-and-error-msb3073-while-building-android-project-help-i-got-2-errors-in-visual-studio-lnk1181-cannot-open-input-file-msb3073/489215/2):
>
> Did you fix this?

@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?

---

_[View the full topic](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204)._
