Question: Hi everyone hope you guys well!

So here is the deal; I have an android unity project which has not extra plugin or SDK.
When I am going to try to build project, this error appears. I'm stuck with this :(

Tried With this versions;

Unity Version:2021.3.5f1 ,2020.3.25f1

Gradle version: Built-in, 7.4.2, 6.2, 7.0.2

JDK-NDK-SDK: Built-in

> 
> Configure project :launcher WARNING: The option 'android.enableR8' is
> deprecated and should not be used anymore. It will be removed in a
> future version of the Android Gradle plugin, and will no longer allow
> you to disable R8.
> 
> 
> 

I Was tried almost everything on this forum or others nothings changed, Now I'm searching for strange files in project folder.

Am I missing something ?

Answer: 
**Suggestions:**

Download gradle version 6+ and go to preferences and give the path to that directory where you have downloaded the new gradle then go to Player publishing settings and uncheck any custom gradle or manifest (if they are checked) then check and delete files androidManifest and baseGradleTemplate from Plugins/Android then again check those boxes (again only if you were using any custom gradle template or manifest file before) then it will regenerate your manifest and baseGradleTemplate in Plugins/Android folder so then delete resolved libraries and then resolve the packages (if you are using extenrnal dependency manager) and then build the applcation.

Hopefully it will work, happy coding :)
I use Unity 2021.3, project includes Firebase, Admob, Ironsource. I did follow this steps and it's worked

* Delete folder: <PROJECT\_FOLDER>\Library\Bee\Android
* Android Resolver > Force Resolve
* Build again

Hope this helps!