Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Build Error: Wind32Exception after SDK update!

Discussion in 'Android' started by Lylek, Jun 28, 2014.

  1. Lylek

    Lylek

    Joined:
    May 19, 2014
    Posts:
    58
    Hello, I recently opened the Android SDK Manager and it auto-updated itself. Now when I try to build for Android Unity gives me an error - Error building Player: Win32Exception.

    In the past, I found that when getting this error, the fix was to install the 32bit JDK instead of the 64bit, even if your OS and SDK are 64bit. So, previously I had been running a 64bit OS, 64bit SDK, and 32bit JDK - and was able to build for apk's for Android. Now neither the 32 nor the 64bit JDK is making a difference.

    I set the environment variable JAVA_HOME, still no luck.

    Any suggestions?
     
  2. nburlock

    nburlock

    Joined:
    Apr 11, 2013
    Posts:
    65
    The Android SDK auto update rarely works properly for me. I usually just delete the whole thing and download it all again whenever I need to update.
     
  3. Grarup

    Grarup

    Joined:
    Jun 28, 2014
    Posts:
    2
    I have just had the same problem it seams that google moved zipalign from sdk/tools to sdk/build-tools. I dont know how to tell unity this but if you copy zipalign.exe to sdk/tools in your android sdk library it works.
     
    ben-rasooli, Ahmadhp and Lylek like this.
  4. Lylek

    Lylek

    Joined:
    May 19, 2014
    Posts:
    58
    Thanks for the suggestion, but I tried and still get the same error.
     
  5. Grarup

    Grarup

    Joined:
    Jun 28, 2014
    Posts:
    2
  6. Lylek

    Lylek

    Joined:
    May 19, 2014
    Posts:
    58
    It work! Thank you very much! :)

    Edit: I reopened the SDK Manager, and now I can't build again -.- Going to try reinstalling...
     
    Last edited: Jun 30, 2014
  7. Lylek

    Lylek

    Joined:
    May 19, 2014
    Posts:
    58
    Mk, I just completely reinstalled it, moved the zipalign file again, and was able to build... ONCE! Now I can't build again! What is the problem???

    Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre8\bin\javac.exe', CommandLine='-bootclasspath
     
  8. Lylek

    Lylek

    Joined:
    May 19, 2014
    Posts:
    58
    Hmm... I had imported GooglePlayGamesPlugin-0.9.02. After removing it I can build again. Anyone who uses this plugin know why it is giving me this error?
     
    Last edited: Jun 30, 2014
  9. AmmarAlsharekh

    AmmarAlsharekh

    Joined:
    Nov 2, 2014
    Posts:
    1
    Hi,

    I had same issue and I solved it.

    run below file
    C:\Program Files (x86)\Java\jre8\bin\javac.exe

    click update panel then click update now. then restart PC.