- Home /
Error trying to build for android.
I recently did a full reinstall of windows and upgraded to win 10 and ever since when trying to build my game for android I've been getting the following error...
Error building Player: Win32Exception: ApplicationName='C:/Users/user_name/AppData/Local/Android/sdk\platform-tools\adb.exe', CommandLine='devices', CurrentDirectory='C:/Users/user_name/AppData/Local/Android/sdk'
I've Googled and came across a suggested fix of copying adb and its dll files from platform-tools to the tools folder but this didn't work for me.
Does anyone have any other suggestions?
Cheers!
Did you make the android sdk location known to Unity? Inside the Unity editor there is a preferences area that deals with manually setting the location.
Answer by dadika4 · Aug 19, 2015 at 03:35 PM
Go to unity-> preferences->external tools-> and here manual change the path of the android sdk... here also check if the path is the same. And when installing sdk did you say install for all or just this user. and that you are sign in with that user if you have designated the install for user...
see full manual sdk install here: link text
yes I have the paths in preferences set up accordingly and I installed for all users (I do with everything I install and there's only one user account on this machine anyway). I've installed unity many times successfully and fixed this error before by changing the paths but this time for some reason I can't get rid of the error.
H$$anonymous$$EY_LOCAL_$$anonymous$$ACHINE\SOFTWARE\$$anonymous$$icrosoft\Windows NT\CurrentVersion\AeDebug\Debugger H$$anonymous$$EY_LOCAL_$$anonymous$$ACHINE\SOFTWARE\$$anonymous$$icrosoft.NETFramework\Dbg$$anonymous$$anagedDebugger
Delete that it is causing the exception Win32
Answer by Azbo · Aug 20, 2015 at 11:16 AM
Try making sure if the directory to the SDK is right, it may be wrong and it is giving you that error that it can't find the SDK. If that is not the problem then make sure you have your bundle identifier set to com.whateveryouwant.nameofgame .If you did't set the identifier than go to file --> Build Setting --> Android --> Player Setting than change the identifier. If none of these worked than your SDK may have a problem like maybe it is not updated or it failed to download a specific file. Go in and check that all the platforms you want to put your app on is checked and installed on your machine. If nothing works you can re download the sdk or find more help.
I hope this helped.
Answer by Loki9 · Jul 16, 2018 at 07:07 PM
Worked for me: copy the android SDK folder directly to any root like C:\ or D:\ etc and then in Untiy>preferences>External Tools redirect your SDK to the new location
Your answer
![](https://koobas.hobune.stream/wayback/20220612000547im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Error Building Player: Win32Exception. No solution works 1 Answer
Upgrade from 5.0.1 to 5.1.2f1, can't build in android now 1 Answer
cant get my android tablet to work with Unity remote 1 Answer
Failed to re-package resources,Failed to re-package resources. 3 Answers
Android - Error building player: Failed to repackage resources? 1 Answer