Log in or register to post comments

Unity freezes while trying to locate Android SDK‎

July 18, 2011 - 9:42am #1

Hi,

The problem I am facing is not related to QCAR but if anyone has some pointers please guide me.

I am working on MultiTargets application and when I try to build it, Unity becomes unresponsive when it tries to locate Android SDK path which in my case is:
C:\Development\Android\android-sdk-windows
So the path does not have any spaces in between.

I checked Unity forums but could not find any convincing solution, so currently I am just starting the Task Manager and killing java.exe (as suggested by some developers) in order to complete the build and run the application.

Is there any sophisticated solution to this?

Thanks,
Kranti

Re: Unity freezes while trying to locate Android SDK‎

July 24, 2011 - 2:55am #5

Sorry for replying late. No progress yet. :(

Quote:

Have you checked your Event Viewer for any warnings or errors arising from java or Unity?

I checked the event viewer for Windows Logs -> Application but did not find any Java or Unity specific logs. Are any other sections of Event Viewer which I should look into?

Quote:

And which version of Windows are you using?

Windows 7 x64
with,
Unity 3.3.0f4
Java 1.6 (x64 and x86) Update 26
JDK 1.6 (x64 and x86) Update 26
Device: Samsung Galaxy GT-I9000
Android: v2.2

Quote:

They also recommend deleting 3.X and ensuring that your phone is attached.

I have total four 2.X APIs and I my phone is always attached while building the application.

Quote:

Have you ever been able to build this project without killing java.exe in the process?

I have not been able to build any application without killing java.exe since the day I have installed Unity and Android pro. :|

Thanks,
Kranti

Re: Unity freezes while trying to locate Android SDK‎

July 21, 2011 - 10:42am #4

Have you checked your Event Viewer for any warnings or errors arising from java or Unity?

And which version of Windows are you using?

Quote:

Even deleting Android 1.X APIs as suggested in the following threads did not help:

They also recommend deleting 3.X and ensuring that your phone is attached. Along with this interesting piece of advice..

Quote:

Well, the latest beta seems to work properly with x64 Java and more than 6 Android APIs installed. But as a workaround, please try to keep less that 6 APIs in the sdk folder.

What you're describing implies that Unity actually has discovered the SDK resources, but is unable to load them following its subsequent call to java.exe. I think that Unity calls java.exe to build the app's Android layer and then performs a dex conversion on the resulting class files before packaging them. If you're able to complete the build by killing java.exe, it suggests that these resources are being built but not released by the java process - or Unity may simply be loading earlier builds from the file system. Have you ever been able to build this project without killing java.exe in the process?

Re: Unity freezes while trying to locate Android SDK‎

July 21, 2011 - 8:56am #3

http://forum.unity3d.com/threads/89269-Unity-freezes-when-Try-to-locate-Android-SDK
http://forum.unity3d.com/threads/71150-Unity-freezes-while-building-APK

Thanks,
Kranti

Re: Unity freezes while trying to locate Android SDK‎

July 21, 2011 - 8:38am #2

I've never run into this, but is the java.exe process running continuously - i.e. is it active before and after the call from Unity? Because it sounds as though it may not be releasing the SDK resource, which is preventing access by subsequent calls. What happens if you kill java.exe prior to attempting the build?

Log in or register to post comments