PLEASE HELP - Unable To Build Android APK For Game

Hello,

I am a total beginner at Unity, just downloaded yesterday. I am trying to build the APK for my game, all looks fine (the game is even working fine on my device in the Unity Remote for Android) but when I try to build the APK for the game, I get this error in the Console -

Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details.
C:\Program Files (x86)\Java\jdk1.6.0_45\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/Android SDK	ools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[
Error: java.io.EOFException
]
stdout[

Please if anyone could help me solve this issue, it would be really appreciated!

Thanks for your help again!

Try this, its help me:

  1. Open System Properties (Win+X → System)
  2. Click Advance system settings
  3. Click Environment Variables…
  4. Under System variables list, double-click PATH
  5. IMPORTANT: add the JDK bin folder to START of the PATH variable, then semicolon, and rest of the path

My Path: C:\ProgramData\Oracle\Java\javapath;