Please help my, i get this error when i build my apk. I try to delete library folder, restart editor but still not work.
BuildFailedException: Incremental Player build failed!
UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <6a5b55f2e18b419e9faedac06ac6af94>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <6a5b55f2e18b419e9faedac06ac6af94>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 <6a5b55f2e18b419e9faedac06ac6af94>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I update more about information
Building F:\Fork\MyGame\Library\Bee\artifacts\unitylinker_xy1a.traceevents failed with output:
C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe --search-directory=F:/Fork/MyGame/Temp/StagingArea/Data/Managed --out=Library/Bee/artifacts/Android/ManagedStripped --include-link-xml=F:/Fork/MyGame/Temp/StagingArea/Data/Managed\MethodsToPreserve.xml --include-link-xml=F:/Fork/MyGame/Temp/StagingArea/Data/Managed\TypesInScenes.xml --include-link-xml=F:/Fork/MyGame/Temp/StagingArea/Data/Managed\SerializedTypes.xml --include-link-xml=F:\Fork\MyGame\Temp\actk-link.xml --include-link-xml=F:\Fork\MyGame\Assets\link.xml --include-link-xml=F:\Fork\MyGame\Assets\GoogleMobileAdsNative\link.xml --include-link-xml=F:\Fork\MyGame\Assets\MaxSdk\UMP\link.xml --include-link-xml=C:/Program Files/Unity/Hub/Editor/2021.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/AndroidNativeLink.xml --include-directory=F:/Fork/MyGame/Temp/StagingArea/Data/Managed --profiler-report --profiler-output-file=F:/Fork/MyGame/Library/Bee/artifacts/unitylinker_xy1a.traceevents --dotnetprofile=unityaot-linux --dotnetruntime=Il2Cpp --platform=Android --use-editor-options --enable-engine-module-stripping --engine-stripping-flag=EnableUnityConnect --engine-stripping-flag=EnableCrashReporting --engine-modules-asset-file=C:/Program Files/Unity/Hub/Editor/2021.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/modules.asset --editor-data-file=F:/Fork/DeluxeBlockJewel/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/ACTk.Examples.Genuine.Runtime.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/Google.Play.Core.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/Unity.TextMeshPro.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/SingularCore.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/Google.Play.Review.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/ACTk.Runtime.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/UnityEngine.Purchasing.Codeless.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/ACTk.Examples.Runtime.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/Google.Play.Common.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/DOTween.dll --include-unity-root-assembly=F:/Fork/MyGame/Temp/StagingArea/Data/Managed/PubScale.SdkOne.dll --print-command-line --enable-analytics
ILLink: error IL1999: ERROR: Failed to resolve base type ??? for type ???�?;? in assembly ACTk.Runtime.dll when linking against the UnityAot-Linux profile
Fatal error in Unity CIL Linker
Unity.Linker.StrippingResolutionBaseTypeException: ERROR: Failed to resolve base type ??? for type ???�?;? in assembly ACTk.Runtime.dll when linking against the UnityAot-Linux profile
at Unity.Linker.MonoBehaviorUtilities.DerivesFrom(UnityLinkContext context, TypeDefinition type, String[ ] possibleBaseNames)
at Unity.Linker.MonoBehaviorUtilities.IsMonoBehaviourOrScriptableObject(UnityLinkContext context, TypeDefinition type)
at Unity.Linker.Steps.Rooting.ResolveFromMonoBehaviours.b__6_0(TypeDefinition t)
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Unity.Linker.Steps.Rooting.ResolveFromMonoBehaviours.Process(LinkContext context)
at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Unity.Linker.UnityDriver.UnityRun(Boolean noProfilerAllowed, ILogger customLogger)
at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger, Boolean noProfilerAllowed)
at Unity.Linker.UnityDriver.RunDriver()
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
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 and Google Play Services.
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.
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…):
Android Gradle errors and other related stuff:
Thank for your help.
I solve my problem. I realize some link about anti cheat toolkit missing when i change something on that package.