• Register
0 votes
1.2k views

Problem :

I am following the Building Unity game for the Android device for a testing purpose I have followed all the instruction but I am facing below error in the end.

My Error:

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()

How to fix above error?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

As you must have noticed after you click the build settings you are prompt to the download it in the asset, which unity wouldn't allow to build the exe files inside the asset. So in that case, try building it in the different folder or on the desktop. It works fine for me!

OR

Got same problem in the past. This is how I solved it:

  1. In "tools" directory of the android SDK open the file named 'android' and in the list choose all the 25-versions and install those packages (Please Note: This file didn't want to be open while my SDK was installed in C-System, so I was supposed to copy the whole SDK in to another one and it finally launched.
  1. Install the JDK-8, not 9! Even if you have the 9-version, download 8 and in a Unity in Edit->Preferences change your jdk path to 8-version. After these steps I finally resolved my problem. Good luck, hope it will help someone :)
9 7 4
38,600 points

Related questions

0 votes
1 answer 20 views
20 views
Problem: what is wronge with this ? how can i fix it ? build completed with a result of 'failed' unityengine.guiutility:processevent(int32, intptr).
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.8K views
2.8K views
Problem : How can i fix the following error build completed with a result of 'failed' unityengine.guiutility:processevent(int32, intptr)
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 56 views
56 views
Problem : I want to implement the Unity's IAP in my game. At first build I encountered an error for not compatible SDK for my Android. Than I updated the SDK from 23 to 24. After updating it when I tried to build it, I faced another error as follows : Code (error): ... inside the "stderr" and "stdout".) My Platform : Android My Unity Version : 5.5.0f3 (Personal) My Unity IAP Version : 1.13.1
asked Dec 6, 2019 alecxe 7.5k points
0 votes
1 answer 5 views
5 views
c# unity pick up choice
asked Mar 19 Diana20 920 points
0 votes
1 answer 62 views
0 votes
0 answers 92 views
92 views
Problem: Whenever I try to compile my android project in the eclipse 3.4.2 then I am facing below error The project cannot be built until the build path errors are resolved. I found a very temporary solution from online material. The solution is to force the ... the project) Then the error(s) will go away Kindly remove the dummy library Is there any permanent fix for my above android issue?
asked Jun 22, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 2 views
2 views
Problem: Do you have any suggestions about how I can solve this problem?
asked 3 days ago zayed1 35.6k points
0 votes
1 answer 2 views
2 views
Problem: Can anyone give a description about "comparison between jdk1.6 and jdk1.8 code with Example."
asked 3 days ago sumaiya simi 16.2k points
1 vote
1 answer 2 views
2 views
Problem: How can I deal with this problem : perhaps you are running on a jre rather than a jdk
asked Apr 4 MUHAMMAD MUNEEB 83k points
1 vote
1 answer 3 views
3 views
Problem: I need a help , How I can fix this : perhaps you are running on a jre rather than a jdk maven
asked Apr 4 MUHAMMAD MUNEEB 83k points