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

**URL:** <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>\
**Category:** Mobile\
**Tags:** error, unreal-engine, Android, Visual-Studio, question\
**Created:** [September 26, 2021, 9:59am UTC](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 "2021-09-26T09:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nrender](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nrender](https://forums.unrealengine.com/u/Nrender)\
**Post date:** [September 26, 2021, 9:59am UTC](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/1 "2021-09-26T09:59:46Z")

</div>

im making a android game and while i was trying to get ads to work these errors came

1 error LNK1181 cannot open input file ‘C:\Program Files\Epic Games\UE\_4.26\Engine\Intermediate\Build\Win64\UE4Editor\Development\AndroidAdvertising\UE4Editor-AndroidAdvertising.lib’

2 error MSB3073 rity CThe command ““C:\Program Files\Epic Games\UE\_4.26\Engine\Build\BatchFiles\Build.bat” BeansHunterEditor Win64 Development -Project=“C:\Users\*\*\*\*\Documents\Unreal Projects\BeansHunter\BeansHunter.uproject” -WaitMutex -FromMsBuild” exited with code 6

i have also tried removing binaries and intermediate but that didnt help

 ![349379-image1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/2/c22a2f54b3d1ef3082720377aa7eed3e6f7f84e8.png)

---

<div class="post-metadata">

**Author:** ![Ashyankee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ashyankee/32/88719_2.png) [@Ashyankee](https://forums.unrealengine.com/u/Ashyankee)\
**Post date:** [March 22, 2022, 5:20am UTC](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 "2022-03-22T05:20:06Z")

</div>

Did you fix this?

---

<div class="post-metadata">

**Author:** ![Milan83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Milan83](https://forums.unrealengine.com/u/Milan83)\
**Post date:** [December 11, 2022, 5:32pm UTC](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/3 "2022-12-11T17:32:27Z")

</div>

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:

```auto
if (Target.Platform == UnrealTargetPlatform.Android) {
  PrivateDependencyModuleNames.Add(AndroidAdvertising);
}

```

---

<div class="post-metadata">

**Author:** ![SR-15](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sr-15/32/1082205_2.png) [@SR-15](https://forums.unrealengine.com/u/SR-15)\
**Post date:** [April 28, 2023, 11:52am UTC](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/4 "2023-04-28T11:52:15Z")

</div>

That helped me to build, Thanks!  
I think you forgot to add apostrophe “AndroidAdvertising”
