I don’t know what’s happening to unity right now but I think there new version seems buggy I’m using unity 2021.3.8f1. I’m trying to publish my game right now in google play they require that I use api 31 or higher so what I did is First download gradle 6.1.1 and point my gradle in that folder. Second I change classpath ‘com.android.tools.build:gradle:3.6.0’ to classpath ‘com.android.tools.build:gradle:3.4.0’. When I build a Mono in scripting backend it’s working while if I build using IL2CPP it failed and produces error
FileNotFoundException: Could not find file 'C:\Users\TI\Documents\noylegendaryninja\googlebuild\nln.aab'.
System.IO.FileInfo.get_Length () (at <c2a97e0383e8404c9fc0ae19d58f57f1>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckApksSize.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <4a8943a7ff7048deb64e0a5059f78d1d>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <4a8943a7ff7048deb64e0a5059f78d1d>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <4a8943a7ff7048deb64e0a5059f78d1d>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <4a8943a7ff7048deb64e0a5059f78d1d>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <5f40cdb07bd44d76a23dad985a4ec283>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)