Cloud build fails after upgrade 2022.3 -> 6000

As the title says, a project that worked on 2022.3 now fails to build on android after upgrading to 6000.x. Both production and development builds fails in the gradle build. I think the important parts of the logs is this

[2025-03-04T14:22:37Z - Unity] FAILURE: Build failed with an exception.
[2025-03-04T14:22:37Z - Unity] 
[2025-03-04T14:22:37Z - Unity] * Where:
[2025-03-04T14:22:37Z - Unity] Build file 'BUILD_PATH/p\unity_project\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1
[2025-03-04T14:22:37Z - Unity] 
[2025-03-04T14:22:37Z - Unity] * What went wrong:
[2025-03-04T14:22:37Z - Unity] A problem occurred evaluating project ':launcher'.
[2025-03-04T14:22:37Z - Unity] > Failed to apply plugin 'com.android.internal.application'.
[2025-03-04T14:22:37Z - Unity]    > The option 'android.enableDexingArtifactTransform' is deprecated.
[2025-03-04T14:22:37Z - Unity]      The current default is 'true'.
[2025-03-04T14:22:37Z - Unity]      It was removed in version 8.3 of the Android Gradle plugin.
[2025-03-04T14:22:37Z - Unity]      If you run into issues with dexing transforms, try setting `android.useFullClasspathForDexingTransform = true` instead.

I dont have the variable android.enableDexingArtifactTransform set in gradelTemplate.properties now, but I’ve tride to set it both to true and false, and the build still fails. Same with android.useFullClasspathForDexingTransform.

I’ve tried a force resolve on the extrenal dependency manager.

Edit: If i add android.useFullClasspathForDexingTransform = true the local build works but still not the cloud build.

Are you able to build locally using batch mode for both versions of the same commit?

Same as in cloud build, works in 2022.3, fails when using 6000

ok, there is no guarantee of compatibility between Unity 2022.3.x and Unity 6.x. so you will need to resolve the upgrade issues locally before they will work in Unity Build Automation.

Ok, I’ll try to ask the question in another forum

Found out the solution on my own, wrote it down here if anyone else is looking for the answer.