# 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:** 14\
**Page:** 2

<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, 1:28pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/21 "2023-05-11T13:28:01Z")

</div>

I think you solved the main problem of this forum that was the plugin build issue. Now the problem is in game project file.  
So I think I should start a new forum for game project build issue, I will keep this forum opened so you could reply if you found anything.  
What’s your opinion?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 11, 2023, 1:38pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/22 "2023-05-11T13:38:35Z")

</div>

If you find the solution as satisfactory then I would mark it as solved.

I will try my best to get a basic project up and running with the plugin and post a link to it once it’s done.

---

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

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 11, 2023, 3:38pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/24 "2023-05-11T15:38:47Z")

</div>

I got android studio setup up and running with line-command and SDK but for some reason androidSetup.bat it getting stuck even though I specified my JAVA\_HOME environment variables.

Perhaps it’s a java version thing. Will try to get it running tomorrow.  
I’m happy that you were able to get passed the error.

---

<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, 5:11pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/25 "2023-05-11T17:11:24Z")

</div>

I tried that plugin too and It doesn’t worked. I think my gradle file is glitched.  
Because when I click on app.app main:

 ![Error one](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/0/3e01edcc2e4ffbded2de9020e520b4dd5452fe3e.png)

It takes me to the line 29 where is no logic of writing android:exported=“true”.

 ![Error two](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/4/89467d0349e247b3166b5c8743bb38ec3a531ce4.png)

What should I do?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 11, 2023, 5:28pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/26 "2023-05-11T17:28:50Z")

</div>

> <https://stackoverflow.com/questions/69941373/targeting-android-12-failed-with-error-of-androidexported>

"For an app targeting Android SDK Version 31(Android 12 OS) or above we need to set the `android:exported="true"` for any of our app’s own activity and any 3rd party library’s activity in our app’s manifest, where ever the `<intent-filter...` is added.

We faced this issue for auth0 Android SDK."

Also your error message mentions you need it for "\<receiver …NetworkProviderReceiver\>. Check if it has android:exported=“true”

---

<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, 5:30pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/27 "2023-05-11T17:30:53Z")

</div>

I checked thousands of time but everywhere android exported is true, in every single intent filter  
Can I give you this xml working file anyway?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 11, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/28 "2023-05-11T17:31:31Z")

</div>

Sure

---

<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, 5:34pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/29 "2023-05-11T17:34:09Z")

</div>

Do I have to give whole project zip file or just intermediate will be enough for working?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 11, 2023, 5:35pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/30 "2023-05-11T17:35:26Z")

</div>

You can ommit:

- intermediate
- binary
- saved
- .vs
- derivedDataCache  
and the project .sln file

All of the above can be regenerated via the uproject file.

---

<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, 5:45pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/31 "2023-05-11T17:45:28Z")

</div>

I am getting error uploading file I think its too big that why  
Let me try

---

<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, 5:55pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/32 "2023-05-11T17:55:27Z")

</div>

Still cant upload the file. I got one more method I can try that downgrading my sdk version to 30 and buildi pakage then check manifest and after fixing it build the pakage again.  
I’ll update here if it works or not

---

<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, 9:24pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/33 "2023-05-11T21:24:43Z")

</div>

Finally! I’ve also fixed android exported issue. All I need to do was just type the missing receiver android name and android:exported=“true” at the same line.

 ![fixed android exported](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/3/e136e922a455653d3039687b3dfcc0126239700b.png)

All the errors are fixed. Thankyou!

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 11, 2023, 9:25pm UTC](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204/34 "2023-05-11T21:25:56Z")

</div>

@Anqeror Cogratulations! 🙂

[Previous page](https://forums.unrealengine.com/t/cannot-not-be-compiled-try-rebuilding-from-source-mannually-giving-errors-in-visual-studio/1162204.md?page=1)
