I have my Android SDK and Java SDK up to date (and on another computer) both running Windows 7 x64 and when select to build or build and run, "Trying to locate Android SDK installation folder..." appears and hangs. However, if I force close java.exe in the Task manager, the prompt clears and Unity and continues to build/runs the .apk just fine.
Could this be a bug or is this a known problem?
-Running Unity3D 3.3.04f
I’m having this same problem. The java.exe process starts right when the “Trying to locate Android SDK installation folder…” message appears, and force closing the process via Task Manager immediately fixes it. I hope a solution is forthcoming, since it’s kind of annoying.
Did some testing and it chokes if there are in spaces in the path to the Android SDK. Default location is in Program Files or Program Files(x86). If it’s installed anywhere without a space like c:/Android it works without having to kill java.exe
I have created a game with unity3d v3.3 . but cannot built with android :
Exception: Error building Player: Win32Exception: ApplicationName=‘java.exe’, CommandLine=‘-Dcom.android.sdkmanager.toolsdir=“C:/Users/Admin/AppData/Local/Android/android-sdk ools” -classpath “C:/Users/Admin/AppData/Local/Android/android-sdk ools\lib\sdkmanager.jar” com.android.sdkmanager.Main list targets’, CurrentDirectory=‘’
UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:341)
UnityEditor.BuildPlayerWindow.BuildPlayerAndRun () (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:263)
In Unity 4.2.0 it doesn’t give me any errors, but in 3.4.2 even if the project contains just the main camera and a cube it gives me these errors and the .apk file is not built. How can I resolve this?