- Home /
The question is answered, right answer was accepted
Error building Player: Win32Exception [Solved]
hi all, i have import "googleadmob.unitypackage" to include "AdMob" in my application, but when i build my app i have this proble:
Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/andrea/Desktop/filippo/APP/sbasbsbsba/adt-bundle-windows-x86_64-20130917/sdk/platforms/android-18\android.jar" -d "C:\Users\andrea\Desktop\filippo\file\BALLOON\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding ascii "com\FIDA\Studios\Mr\Balloon\R.java" "com\google\android\gms\R.java"', CurrentDirectory='C:\Users\andrea\Desktop\filippo\file\BALLOON\Temp\StagingArea\gen'
how i can resolv it? thnx
thnx, finally fixed my problem after 2days of struggle. all answers were help me. 1)set environment variables.
variable = JAVA_HO$$anonymous$$E value = C:\Program Files\Java\jdk1.8.0_05
2) user variable.
add to variable "path" the value "%JAVA_HO$$anonymous$$E%\bin" without quotes,
3)Go to C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0 (you may have different version) Copy zipalign.exe to C:\Program Files (x86)\Android\android-sdk\tools\ (or in your Android SD$$anonymous$$ path)
fix my issue.
Answer by KaueAftimus · Oct 24, 2014 at 09:15 PM
Found a user with the same issue at: https://github.com/playgameservices/play-games-plugin-for-unity/issues/3
Follow his same steps and is now fixed for me!
"I had the same issue and found a fix.
The issue seems to be that when using this plugin, Unity needs to use the java compiler (javac.exe) But it's not found in the C:\Program Files (x86)\Java\jre7\bin\ folder. You must install the JDK and set the JAVA_HOME environment variable to C:\Program Files\Java\jdk1.7.0_45 You must also add the jdk bin folder to your PATH: C:\Program Files\Java\jdk1.7.0_45\bin You must then reboot. That did it for me.
I hope this helps!!!"
Should be mark good answer! Thx Set Environment variable windows 7
Also don't forget to reset Unity once you have updated the variables
Dear $$anonymous$$aueAftimus, I ran into 2 similar (win32exception) errors when I tried to "build and run" to get the .apk file. (please see below).
Have you any idea how I could fix this problem?
I'm following this tutorial and it's the last step to complete this: http://program$$anonymous$$ghistorian.org/lessons/intro-to-augmented-reality-with-unity
Error 1 Win32Exception: Access is denied.
System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start () (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () UnityEditor.Android.ADB.StartServer (UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit) UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.ADB.Devices (UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit) UnityEditor.Android.PostProcessor.Tasks.CheckDevice.FindDevice (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.Tasks.CheckDevice.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (BuildOptions options, BuildTarget target) UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (BuildOptions options, BuildTarget target) UnityEditor.PostprocessBuildPlayer.PrepareForBuild (BuildOptions options, BuildTarget target) (at C:/buildslave/unity/build/Editor/$$anonymous$$ono/BuildPipeline/PostprocessBuildPlayer.cs:98) UnityEditor.HostView:OnGUI()
Error 2 Error building Player: Win32Exception: Access is denied.
my problem is similar i was just program$$anonymous$$g and it happenned but i have Java_Home set up and i'm not even using java in my project, so what do i do?
Answer by Sisso · Jul 07, 2014 at 07:47 PM
Probably it not found "C:\Program Files (x86)\Java\jre7\bin\javac.exe". Check if the file exsists and you have JDK 7 installed.
searching in the web I saw that the file "javac.exe" does not exist in jre but only in jdk... anyway now i try to update it and see if it works
Answer by JayFitz91 · Jul 08, 2014 at 07:32 AM
Could be a similar problem to mine, maybe this solution could help?
http://answers.unity3d.com/questions/742757/android-build-error-error-building-player.html
Edit:
Just thinking it could actually be an error java sdk, do you have both 32 bit and 64 bit java sdk installed?
You could try copying the java.exe from C:/windows/system32 to C:/windows/sysWOW64 and see if that works
Answer by izazhaque · Oct 15, 2014 at 05:28 PM
forget everything just go to C:\Windows\SysWOW64 and paste java.exe from C:\Windows\System32 or anywhere from your jdk path like :- C:\Program Files\Java\jdk1.8.0_20\bin
Follow this Question
Related Questions
Build and Run Android Error 0 Answers
Android build fail - Error building Player: Win32Exception 0 Answers
Distribute terrain in zones 3 Answers
Please help!!!!!! Win32 Exception 1 Answer
Game Crashes On Startup? 3 Answers