MegaCo
August 19, 2019, 9:42am
1
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
MegaCo
August 19, 2019, 5:29pm
4
Domas_L:
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?
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.
MegaCo
August 19, 2019, 9:18pm
5
Domas_L:
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?
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”.
MegaCo
August 19, 2019, 9:26pm
6
Iv attached a screenshot.
MegaCo
August 20, 2019, 4:30pm
7
Domas_L:
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?
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
MegaCo
August 21, 2019, 7:57am
9
Alright will give it a shot.
MegaCo
August 21, 2019, 9:08am
10
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
MegaCo
August 21, 2019, 10:48am
12
Thank you for response, going too try that now. If still doesn’t work going to try those forms aswell.
Domas_L
August 21, 2019, 11:05am
13
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
MegaCo
August 21, 2019, 11:05am
14
The_Mean_Fiddler:
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.
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!!
MegaCo
August 21, 2019, 11:06am
15
I got it working. I turned ads off in the services. thank you.