UnityEditor.BuildPlayerWindow+BuildMethodException?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 15:12:34

问题


Anybody Knows how to solve the following error in unity3d?

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


回答1:


[Problem Solved]

Just had to delete the "plugins" folder from the "Assets" folder of my project.




回答2:


in unity unity 2018.3.1 check "use legacy SDK tools" (player settings >> publishing settings).




回答3:


In my case I had to change the Player settings Build system from Gradle to Internal (Unity 2018.2.10f1)




回答4:


So I guess many of the answers above are right for many different people, but in my case it was due to a stupid fault which I had expected unity to automatically ignore

using UnityEditorInternal;

So basically when I closed my script editor it would finally open up a script after clicking the error message, since it didn't before, after looking I noticed it was using a unitiEditor reference, after commenting it it worked.




回答5:


I was getting a similar error message. The problem was that I tried to minify the android APK with 'Proguard'. Changing it to 'Gradle (Experimental)' in Player Settings did the trick.




回答6:


In my case at least, I added a line to mainTemplate.gradle in dependencies { ... } (probably you don't have this file but in case some of you have) this line is:

implementation 'com.google.android.exoplayer:exoplayer:2.8.4'

The dependencies section become:

  dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.google.android.exoplayer:exoplayer:2.8.4'
**DEPS**}

I needed to add an implementation in it. The second line. Where I was wrong at I added a dumb , before that line. Because of that, It failed. If you put some , just delete it. I don't know it's gonna solve your problem but at my side it solved.




回答7:


Just change the buildSystem from Gradle to Internal. I solved my problem with it



来源:https://stackoverflow.com/questions/54194428/unityeditor-buildplayerwindowbuildmethodexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!