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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Win32Exception in Unity3D when trying to run an Android application

Discussion in 'Android' started by SurroundVisionTest, Aug 24, 2015.

  1. SurroundVisionTest

    SurroundVisionTest

    Joined:
    Aug 7, 2015
    Posts:
    2
    I'm trying to run an Android application through Unity3D and keep getting the following error (below the Build settings window):



    I've tried a few fixes that I found online. For example, I set the JAVA_HOME variable here:



    Also I have 3 Android SDK's on my machine and have copied zipalign.exe from their build-tools to tools.

    None of these seemed to have worked for me and I haven't been able to find any other suggestions online. Can anybody help me?

    I really appreciate any advice, thanks.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    Is there a more detailed error message? (e.g: when clicking over the line that starts with Win32Exception).
     
  3. SurroundVisionTest

    SurroundVisionTest

    Joined:
    Aug 7, 2015
    Posts:
    2
    Here:

     
  4. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    Looks like you have android 23 installed (i think it is in preview?)
    Not sure it is supported by Unity...

    You can try to remove that folder from your Android SDK (Android SDK/platforms/Android-23) or move that folder outside for a minute and try to build again.