• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jul 27, 2015 at 10:53 AM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
Question by pippo19 · Jul 07, 2014 at 04:43 PM · errorbuildadmobwin32exception

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

Comment

People who like this

0 Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KaueAftimus · Oct 24, 2014 at 07:39 PM 1
Share

It would be great to know how you solved it...

avatar image YasinJavaid_ · Nov 10, 2015 at 10:00 AM 0
Share

thnx, finally fixed my problem after 2days of struggle. all answers were help me. 1)set environment variables.

variable = JAVA_HOME value = C:\Program Files\Java\jdk1.8.0_05

2) user variable.

add to variable "path" the value "%JAVA_HOME%\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 SDK path)

fix my issue.

4 Replies

  • Sort: 
avatar image
Best Answer

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!!!"

Comment
Crazydadz
cocleu
its2l82die
IgorAherne
muhammad_ali_safdar

People who like this

5 Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Crazydadz · Jan 28, 2015 at 06:53 PM 0
Share

Should be mark good answer! Thx Set Environment variable windows 7

avatar image its2l82die · May 19, 2015 at 09:54 AM 0
Share

Also don't forget to reset Unity once you have updated the variables

avatar image wilbertllama · Mar 12, 2017 at 03:19 PM 0
Share

Dear KaueAftimus, 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://programminghistorian.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 errorMsg) 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/Mono/BuildPipeline/PostprocessBuildPlayer.cs:98) UnityEditor.HostView:OnGUI()

Error 2 Error building Player: Win32Exception: Access is denied.

avatar image RpxdYTX · Mar 28, 2021 at 09:09 PM 0
Share

my problem is similar i was just programming 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?

avatar image

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.

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image pippo19 · Jul 08, 2014 at 07:28 AM 0
Share

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

avatar image

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

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

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

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Build and Run Android Error 0 Answers

Android build fail - Error building Player: Win32Exception 0 Answers

Please help!!!!!! Win32 Exception 1 Answer

Distribute terrain in zones 3 Answers

Error while downloading Asset Bundle: Failed to decompress data for the AssetBundle 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges