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

Unity Project Giving Error on Android Build

Discussion in 'General Discussion' started by FrazZahid, Jun 30, 2014.

  1. FrazZahid

    FrazZahid

    Joined:
    Jun 10, 2014
    Posts:
    15
    Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/Fraz Zahid/Desktop/adt-bundle-windows-x86_64-20140321/adt-bundle-windows-x86_64-20140321/sdk/platforms/android-19\android.jar" -d "C:\Users\Fraz Zahid\Documents\TappyPlane1\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding ascii "com\example\tappyplane\R.java" "com\facebook\android\R.java"', CurrentDirectory='C:\Users\Fraz Zahid\Documents\TappyPlane1\Temp\StagingArea\gen'
     
  2. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,117
    I think you either don't have JDK installed, or your JAVA_HOME environment variable isn't set.
     
    FrazZahid likes this.
  3. FrazZahid

    FrazZahid

    Joined:
    Jun 10, 2014
    Posts:
    15
    hmm...I got that working by deleting old version and installing the new one...Thanks alot.. :)
     
  4. FrazZahid

    FrazZahid

    Joined:
    Jun 10, 2014
    Posts:
    15
    i got that working by re installing java
     
  5. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,117
    Glad to hear that it worked for you!
     
  6. FrazZahid

    FrazZahid

    Joined:
    Jun 10, 2014
    Posts:
    15
    :) thanks