Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
2
Question by MoiDixMois · May 21, 2013 at 08:37 PM · androiderrorbuild

Can't build into Android

hello guys ,i am new into android dev since it's already free on unity xD so i tried my mock project to build for android ,and everytime i build it ,i get this error

Error building Player: Exception: android (invokation failed) ERROR: unknown error cmd:android list target -c stdout; stderr: Exception in thread "main" java.lang.NullPointerException at SDKMain.main(SDKMain.java:62) Picked up _JAVA_OPTIONS: -Xmx512M

and i already setup the environtment etc based on this video :http://www.youtube.com/watch?v=1Kf2D0UdgY0

and all working good based on that video ,that's why i don't know why i keep getting error :( and of course i already google and search on answers and forum ,but still ,nothing work, i already add java -xmx512 and the path for jdk and java ,but still doesn't work

please help :'(

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 Tomer-Barkan · May 21, 2013 at 08:59 PM 0
Share

Hard to say exactly where the problem is from that message alone.

What you can do is install the ADT (android development toolkit - very easy, follow this: http://developer.android.com/sdk/installing/bundle.html), and then ins$$anonymous$$d of creating an application, create an eclipse project (you have a checkbox to create an eclipse project in the build menu of Unity).

Then load the eclipse project with the android ADT (right click the workspace, select "import", select under "general" - "import existing project to workspace", and select the directory that you exported from unity.

Then try to build that project in eclipse (Run -> Run configurations, then double click "Android Application", in the project click browse and select your unity project. Click apply then run).

This will give you a more accurate error message as to the problem, and location in the code where the exception is being thrown. You might be able to understand yourself where the problem is, but if not you can post more info here and get more help.

Also, if you have any unity plugins that you are using, make sure they are compatible with android.

Good luck.

avatar image MoiDixMois Tomer-Barkan · May 22, 2013 at 04:06 AM 0
Share

thanks dude ,will do and report soon if it still can't work :D

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Daveoh · May 22, 2013 at 03:28 AM

I suspect this is the same problem which can be solved using this answer from another question: http://answers.unity3d.com/questions/461115/android-build-fails-with-unknown-reason-after-upgr.html#answer-461120

Comment
Add comment · Show 1 · 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 MoiDixMois · May 22, 2013 at 04:03 AM 0
Share

already did that since yesterday ,still no luck :(

edit : wait ,never$$anonymous$$d ,i check the sdk ,i already installed the r21 but i not yet installed the platform-tools thingy for r21 ,i'll download it now ,and report soon of it still can't work,thanks for the answer :D

edit again : and yes i can build it ,yaaaay ,thanks dude :D

avatar image
0

Answer by amit-chai · Dec 31, 2013 at 10:38 PM

Ive installed java 32bit and now unity finds the jdk and and the android-sdk. it can also be installed in D:\ or whatever folder with android-jdk name. also ive needed to add JAVA_HOME PATH as mentioned in https://github.com/playgameservices/play-games-plugin-for-unity/issues/3 finally...

Comment
Add comment · Show 1 · 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 Its_Qwert · May 18 at 08:32 AM 0
Share

It worked for me. Thank you after 10 years :)))))))))))))))

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.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Send an activity from C# to Java 0 Answers

can't build android app with facebook sdk 5 Answers

Unity 3D Android - Building problems 1 Answer

CommandInvokationFailure: Failed to re-package resources 1 Answer

Failed to re-package resources. 16 Answers


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