• 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 /
avatar image
0
Question by akshatg · Mar 05, 2015 at 10:32 AM · apk

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

Comment
Add comment · 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 meat5000 ♦ · Mar 04, 2015 at 11:23 PM 0
Share

Installed the Android SD$$anonymous$$?

avatar image akshatg · Mar 05, 2015 at 07:19 AM 0
Share

Yes. I have installed the following from the SD$$anonymous$$ $$anonymous$$anager already -

Android SD$$anonymous$$ Tools (Version 24.1.2), Android SD$$anonymous$$ Platform Tools (Version 21), Android SD$$anonymous$$ Build Tools (Version 20), Android 4.2.2 (API 17) - All packages in this, Android Support Library, Google USB Driver

Anything else I need to install or that I need to fix?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Anonimys · Mar 05, 2015 at 11:19 AM

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;

Comment
Add comment · Show 2 · 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 akshatg · Mar 05, 2015 at 02:18 PM 0
Share

Could you please explain in more detail? $$anonymous$$y path is like this -

C:\Program Files (x86)\Java\jdk1.6.0_45/bin

Now what should I write in the Variable value for Path?

avatar image akshatg · Mar 05, 2015 at 02:20 PM 0
Share

This is what I have just tried in the Variable Value but didn't work -

C:\Program Files (x86)\Java\jdk1.6.0_45\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTE$$anonymous$$ROOT%\System32\WindowsPowerShell\v1.0\

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

I want to separate minigames from my game and download them after APK installation 1 Answer

Unity Admob Test Ads not working on Android Device. 0 Answers

APK Builder Failed 2 Answers

Built apk with minimum size. 2 Answers

Updating an existing build on Android device 1 Answer


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