Getting a build error

I’m trying to do a build and seem to have run into a problem. I’m trying to look on the forums to see if anyone else has ran into this.

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96
UnityEngine.GUIUtilityprocessEvent(Int32, IntPtr)

Hello! Are there any more errors in the console after the build fails besides this one? Usually builds fail because of script compilations errors or other runtime issues, but generally speaking if you are able to enter Play Mode without issues, you should be able to make a build.

Could you please submit a bug report with a minimal reproduction project for this issue and reply in here with the issue ID?

1 Like

Me too. Exactly the same error in 2019.2.0f1.
I can build OK but Build and Run gives me this error when it gets to Building Resources Folder.
Where does yours fail?

1 Like

Yes, it’s say there are scripts missing on some assets, around 150 but they are alerts not errors. Iv started a bug report it’s uploading.

Im still waiting for the bug report to finish but it’s right towards the end as it’s about to finish.

I’ve tried submitting a report but it takes incredible long 3-4 hours, it gets to around 73% before giving an error “Unable to write”.

Iv attached a screenshot.

4873784--469967--Untitled.png

I’ve tried re-importing all the assets but still no hope. Everything in the editor still works though.

Go to Player setttings - Publish settings - Minify - Realease and choose Gradle(experimental)
Not tried it myself but it’s worth a go.

1 Like

Alright will give it a shot.

I

Dame no, still get the error. What does the error mean though?

You must have java .aar or .jar files in your project. They get converted into .dex format.
You could try removing them and see what happens.
From what I’ve read there might be version incompatibility between your java files and your sdk build tools.

I’m a bit out of my depth. Where’s Domas_L when you need him?

Have you posted it on answers.unity.com? This forum is supposed to be for chat.

1 Like

Thank you for response, going too try that now. If still doesn’t work going to try those forms aswell.

From the screenshot and build errors, it looks like it could be the same issue as Unity Issue Tracker - [Android] Gradle build fails with AndroidX libraries
Sadly, there are no workarounds given for this issue, but it is currently being investigated.

1 Like

It’s works I noticed the arr files were related to the unity ads so instead of removing them I just turned ads off in services and it got it moving. Thank you seriously!!

I got it working. I turned ads off in the services. thank you.