Android Building Bug? "Trying to locate Android SDK installation folder..."

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.

I’m also running Win 7 (Home) 64-bit.

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

Yay! This bug appears to be fixed in 3.4! No more having to open Task Manager and kill that process every time I build for Android!

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)

plase ! who know how to do this problem?

i have exactly the same problem as Foodey so please give us a solution if you can.

i have exactly the same problem as Foodey so please give us a solution if you can.

When I try to build a .apk file it gives me the following 2 errors:

Error building Player: Win32Exception: ApplicationName=‘C:/Users/Teodor/AppData/Local/Android/android-sdk/platforms/android-18\aapt.exe’, CommandLine=‘package -v -f -m -J gen -M AndroidManifest.xml -S “res” -I “C:/Users/Teodor/AppData/Local/Android/android-sdk/platforms/android-18\android.jar” -F bin/resources.ap_’, CurrentDirectory=‘Temp/StagingArea’ UnityEditor.HostView:OnGUI()

and

Exception: Error building Player: Win32Exception: ApplicationName=‘C:/Users/Teodor/AppData/Local/Android/android-sdk/platforms/android-18\aapt.exe’, CommandLine=‘package -v -f -m -J gen -M AndroidManifest.xml -S “res” -I “C:/Users/Teodor/AppData/Local/Android/android-sdk/platforms/android-18\android.jar” -F bin/resources.ap_’, CurrentDirectory=‘Temp/StagingArea’ UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:367) UnityEditor.BuildPlayerWindow.GUIBuildButtons (Boolean enableBuildButton, Boolean enableBuildAndRunButton, Boolean canInstallInBuildFolder) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:972) UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:953) UnityEditor.BuildPlayerWindow.OnGUI () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:726) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object parameters) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:225) UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:218) UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:119)

and I dont know how to fix it.

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?