Cant compile for API level 33

Has anyone compiled for android API level 33. I update my project from unity 2021.3.13f1 to 2022.3.13f1, download the latest version of GoogleMobileAds plugin and still not able to compile. I get an error. I see where it says This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32 and
This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=33 to this project’s gradle.properties, but I prefer no to move anything on the script of the gradle (also becasue playstore requires minimum level API 33) and I havent found anything where I can download a higher version of this android gradle plugin, So, if someone was able to compile for api level 33 or 34, can you please tell me in what version of unity and GoogleMobileAds where you on? Please and Thank you.

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project’s gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

Task :unityLibrary:preBuild UP-TO-DATE
Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :launcher:preReleaseBuild UP-TO-DATE
Task :unityLibrary:validateDependencies UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseBuildConfig
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
Task :launcher:generateReleaseResValues
Task :launcher:javaPreCompileRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
Task :launcher:createReleaseCompatibleScreenManifests
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectAndLocalJars
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareReleaseArtProfile
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:writeReleaseAarMetadata
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJavaResource
Task :launcher:extractDeepLinksRelease
Task :launcher:extractProguardFiles
Task :launcher:mergeReleaseJniLibFolders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:writeReleaseLintModelMetadata
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly
Task :unityLibrary:mergeReleaseJniLibFolders
Task :unityLibrary:compileReleaseAidl NO-SOURCE
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig
Task :unityLibrary:generateReleaseResValues
Task :unityLibrary:generateReleaseResources
Task :unityLibrary:packageReleaseResources
Task :unityLibrary:javaPreCompileRelease
Task :unityLibrary:processReleaseManifest
Task :unityLibrary:mergeReleaseShaders
Task :unityLibrary:compileReleaseShaders NO-SOURCE
Task :unityLibrary:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:parseReleaseLocalResources
Task :unityLibrary:mergeReleaseNativeLibs
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
Task :unityLibrary:packageReleaseAssets
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease
Task :unityLibrary:stripReleaseDebugSymbols
Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars
Task :launcher:compileReleaseAidl NO-SOURCE
Task :launcher:checkReleaseDuplicateClasses
Task :launcher:mergeReleaseShaders
Task :launcher:compileReleaseShaders NO-SOURCE
Task :launcher:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:prepareLintJarForPublish
Task :unityLibrary:prepareReleaseArtProfile
Task :unityLibrary:processReleaseJavaRes
Task :launcher:mergeReleaseAssets
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseResources
Task :unityLibrary:writeReleaseAarMetadata
Task :unityLibrary:extractDeepLinksRelease
Task :unityLibrary:compileReleaseLibraryResources
Task :unityLibrary:generateReleaseRFile
Task :unityLibrary:bundleLibResRelease
Task :unityLibrary:mergeReleaseJavaResource FAILED
Task :launcher:desugarReleaseFileDependencies
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractReleaseAnnotations
Task :launcher:mergeReleaseResources
Task :unityLibrary:extractReleaseAnnotations
56 actionable tasks: 56 executed

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:unityLibrary:mergeReleaseJavaResource’.

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
2 files found with path ‘META-INF/kotlinx_coroutines_core.version’ from inputs:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3m 17s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2022.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath “C:\Program Files\Unity\Hub\Editor\2022.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “assembleRelease”

Environment Variables:
PROCESSOR_ARCHITECTURE = AMD64
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
BURST_ANDROID_MIN_API_LEVEL = 22
DriverData = C:\Windows\System32\Drivers\DriverData
USERDOMAIN = LAPTOP-4HK2AVJJ
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
COMPUTERNAME = LAPTOP-4HK2AVJJ
DEBUG_ENV_VAR = UnityHub
LOGONSERVER = \LAPTOP-4HK2AVJJ
AMPLITUDE_TOKEN_GREENBUCKET_PROD = yyzPzalJDwrQcYNuOZam0bhKb26WyyhK
PUBLIC = C:\Users\Public
ProgramData = C:\ProgramData
SESSIONNAME = Console
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = Ph-837Q6GNodAkyc2MRkxVPUcjlIET4d
APPDATA = C:\Users\patri\AppData\Roaming
SystemRoot = C:\Windows
windir = C:\Windows
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
INTEL_DEV_REDIST = C:\Program Files (x86)\Common Files\Intel\Shared Libraries
ChocolateyLastPathUpdate = 133222491287808310
OS = Windows_NT
ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 126 Stepping 5, GenuineIntel
HEAP_CLIENT_TOKEN_STAGING = 3786794399
HOMEPATH = \Users\patri
FPS_BROWSER_USER_PROFILE_STRING = Default
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
ChocolateyInstall = C:\ProgramData\chocolatey
CHROME_CRASHPAD_PIPE_NAME = \.\pipe\crashpad_6408_PGMDPCLNGWNVSNHH
PROCESSOR_LEVEL = 6
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
CommonProgramFiles = C:\Program Files\Common Files
ZES_ENABLE_SYSMAN = 1
JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
USERDOMAIN_ROAMINGPROFILE = LAPTOP-4HK2AVJJ
TEMP = C:\Users\patri\AppData\Local\Temp
CommonProgramW6432 = C:\Program Files\Common Files
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
HOMEDRIVE = C:
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
USERNAME = patri
OneDrive = C:\Users\patri\OneDrive
AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
AMPLITUDE_TOKEN_REDBUCKET_PROD = QqyoFpcWPi7V17p80_46CF6-sNGRGbHo
NUMBER_OF_PROCESSORS = 8
LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
ComSpec = C:\Windows\system32\cmd.exe
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
PROCESSOR_REVISION = 7e05
TMP = C:\Users\patri\AppData\Local\Temp
SystemDrive = C:
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
OneDriveConsumer = C:\Users\patri\OneDrive
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
HEAP_CLIENT_TOKEN = 1717415662
ALLUSERSPROFILE = C:\ProgramData
Path = C:\Python311\Scripts;C:\Python311;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\Calibre2;C:\Program Files\dotnet;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs;C:\Users\patri\AppData\Local\Microsoft\WindowsApps;C:\Program Files\nodejs;C:\Users\patri\AppData\Roaming\npm;C:\Users\patri\AppData\Local\Programs\Microsoft VS Code\bin
ProgramFiles = C:\Program Files
LOCALAPPDATA = C:\Users\patri\AppData\Local
USERPROFILE = C:\Users\patri
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3

stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:unityLibrary:mergeReleaseJavaResource’.

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
2 files found with path ‘META-INF/kotlinx_coroutines_core.version’ from inputs:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3m 17s
]
stdout[
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project’s gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

Task :unityLibrary:preBuild UP-TO-DATE
Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :launcher:preReleaseBuild UP-TO-DATE
Task :unityLibrary:validateDependencies UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseBuildConfig
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
Task :launcher:generateReleaseResValues
Task :launcher:javaPreCompileRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
Task :launcher:createReleaseCompatibleScreenManifests
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectAndLocalJars
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareReleaseArtProfile
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:writeReleaseAarMetadata
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJavaResource
Task :launcher:extractDeepLinksRelease
Task :launcher:extractProguardFiles
Task :launcher:mergeReleaseJniLibFolders
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:writeReleaseLintModelMetadata
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly
Task :unityLibrary:mergeReleaseJniLibFolders
Task :unityLibrary:compileReleaseAidl NO-SOURCE
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig
Task :unityLibrary:generateReleaseResValues
Task :unityLibrary:generateReleaseResources
Task :unityLibrary:packageReleaseResources
Task :unityLibrary:javaPreCompileRelease
Task :unityLibrary:processReleaseManifest
Task :unityLibrary:mergeReleaseShaders
Task :unityLibrary:compileReleaseShaders NO-SOURCE
Task :unityLibrary:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:parseReleaseLocalResources
Task :unityLibrary:mergeReleaseNativeLibs
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
Task :unityLibrary:packageReleaseAssets
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease
Task :unityLibrary:stripReleaseDebugSymbols
Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars
Task :launcher:compileReleaseAidl NO-SOURCE
Task :launcher:checkReleaseDuplicateClasses
Task :launcher:mergeReleaseShaders
Task :launcher:compileReleaseShaders NO-SOURCE
Task :launcher:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:prepareLintJarForPublish
Task :unityLibrary:prepareReleaseArtProfile
Task :unityLibrary:processReleaseJavaRes
Task :launcher:mergeReleaseAssets
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :launcher:generateReleaseResources
Task :unityLibrary:writeReleaseAarMetadata
Task :unityLibrary:extractDeepLinksRelease
Task :unityLibrary:compileReleaseLibraryResources
Task :unityLibrary:generateReleaseRFile
Task :unityLibrary:bundleLibResRelease
Task :unityLibrary:mergeReleaseJavaResource FAILED
Task :launcher:desugarReleaseFileDependencies
Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractReleaseAnnotations
Task :launcher:mergeReleaseResources
Task :unityLibrary:extractReleaseAnnotations
56 actionable tasks: 56 executed
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action1[T] progress, System.String error) (at <c764018aa4484af49ae840fbd4bf43a5>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action1[T] progress) (at :0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Build completed with a result of ‘Failed’ in 1730 seconds (1729642 ms)
3 errors
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Yes. See links below for how I did it.

How to troubleshoot build failures:

Obviously, if there is actionable data within the errors, fix those problems. Each error entry may have more information than can fit in the console log so select each error and read the expanded view below it.

If that gives you nothing worthwhile (look to Google! You’re never the first one!), then…

First, make a blank project with a single blank scene and prove that it builds successfully.

If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc. It may even be necessary to change to a different version of Unity3D. It is generally best to stay with LTS versions of Unity3D.

Until you can build a blank project to the target platform, don’t fiddle with anything else.

Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

Most often things that prevent building are third-party libraries such as Firebase.

Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

Android build not building:

Recently (circa July 2022) there have been reports of Unity’s installer failing to install the Android Tools.

https://discussions.unity.com/t/887277

Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022 (edited on August 23, 2023 to include Android SDK 33…):

https://discussions.unity.com/t/891017/7

Android Gradle errors and other related stuff:

https://discussions.unity.com/t/901712/2

1 Like

Hi again Kurt, thank you for your reply

At this moment I’m uninstalling everything, I already free like 40gb, Will install the newer versions of everything and will follow all the steps you provided me with and your recommendation to troubleshoot the build failures, the only plugging that I’m using is the GoogleMobileAds. There is something very wrong with I-dont-know-which-update, because in January I was able to compile a project but it was targeted for a lower API level.

Thanks again, have a great Sunday

All the third-party advertising stuff is a complete nightmare so do not test SDK upgrades with it installed.

Get a blank project building first.

Make sure the blank project uses IL2CPP, uses your project’s bundle, and is signed with your project’s actual key.

Build it as AAB and upload it to Google Play, release it Internal Testing and download it to a device.

Only once you can upload a blank project to Google Play and run it on your device from Google Play Internal Testing can you consider the SDK update complete.

Yes, it really actually is that annoying.

1 Like

Hi Kurt, just wanted to tell you that after so much trouble I was able to compile a blank project with google mobile ads plugin, but I did have to upgrade my project from 2021.3 to 2023.2, because with 2021.3 was just not moving on from the same build errors. I’m just starting with this and only have 3 small projects working on the playstore but didn’t even think for once that will encounter so much problems with the compiling part because I didn’t have them with the previous projects, but for all I read it seems that this is very common. How cool it would be if everything ran smoothly.

I even downloaded Android Studio but didn’t want to move a lot from the folders sdk and tools into unity since I don’t know about that enough. Anyway, thank you for your help, see you around.

1 Like