I’ve been using Unity3D for 2 years and recently had to reinstall Windows and all my apps (Java SDK, Android SDK, Unity3D and much more…). Ever since the re-install, I can’t figure out why my project won’t build and gives me the following error:
Error building Player: Win32Exception: ApplicationName=‘java.exe’, CommandLine=‘-Xmx1024M -Dcom.android.sdkmanager.toolsdir=“E:/Android/android-sdk\tools” -Dfile.encoding=UTF8 -jar “e:/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar” -’, CurrentDirectory=‘E:\Projects\Shooter’
Any help would be much appreciated!
WAAAAIIIIITTTT!!! (Yes, that was intended…)
Is this because I installed the 64-bit version of everything? Something in my brain just clicked and makes me believe that I recall reading at some point that you have to use the 32-bit version of… Java? Can anyone confirm?
On a side note, if I do need the 32-bit version, WHY?? I am running 64-bit Windows, 64-bit SDKs, etc… Everything is 64-bit so why wouldn’t it work?
Maybe I am confusing Unity with Torque? I did a lot of game development in Torque and it’s been a long time since I’ve had to re-install my apps/environments…
I went ahead and installed the 32-bit version of JRE SDK and now get a different error:
rror building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
stdout;
stderr:
Exception in thread “main” java.lang.NullPointerException
at SDKMain.main(SDKMain.java:62)