Deploy to android - Compilation problem


I get the below error when pressing the build and run-button for android in unity 4.1.5 (free version).

the sdk is installed (latest version) and I can deploy from eclipse.

Unity does not seem to recoqnize the SDK and asks for it even if have pointed it out in Preferences.

Is it possible to get a more detailed error-message in Unity?

has anyone had a similar problem?



Error building Player: Win32Exception: ApplicationName=‘java.exe’, CommandLine=‘-Xmx1024M“C:/android-sdk/sdk ools” -Dfile.encoding=UTF8 -jar “C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar” -’, CurrentDirectory=‘C:/Users/Jesper/Documents/RedCube’

Put the SDK somewhere that is more direct. Like


Did you type the path in yourself? Or Copy / Paste it?

I think you also need to make sure to have Java JRE (or SDK) installed. Java needs to be entered in to the environment variables.

My SDK path is:

C:\Program Files (x86)\Eclipse\ADT\sdk

Which is the path my install of Eclipse downloads the SDK to. This one gets regularly updated by SDK manager built in to Eclipse.

That said, if you have extracted the SDK but not run the SDK manager you will also have problems.