Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by SomeRandomGuy · Jun 04, 2013 at 12:41 PM · androiderrorsetup

Setting things up for android

Hi, I've been trying to get unity to work with my android phone, but it keeps throwing the following 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


I think this has something to do with my phone not being recognized, but when trying to update the drivers with the google drivers(like most of the tutorials/docs I've seen tell me to do) windows tells me it's all up to date.

I also keep having to assign the folder for the SDK, but I think this is just not saved because building fails.

My phone is a samsung galaxy mini 2, and is running on android 2.3.6.

Anyone know what I'm doing wrong here?

Comment
Add comment
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

1 Reply

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

Answer by Ben-Stoneman · Jun 04, 2013 at 05:08 PM

http://answers.unity3d.com/questions/466396/android-error-building-player-exception-android-in.html

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 SomeRandomGuy · Jun 05, 2013 at 09:38 AM 1
Share

Thanks, hadn't seen that yet. $$anonymous$$ight be worth a try. However I can't seem to find the r21 ADT or SD$$anonymous$$ anywhere on the android website. $$anonymous$$ight just be overlooking it tho. EDIT: sorry, just scrolled down the page to find another post on that forum thread, which gives an actual solution.

Here's a quote from the forum post in case others struggle with it as well:

For those who want to compile with Android r22 without waiting the update from Unity, just copy the content from folder:

android-sdk/build-tools/17.0.0/ <-- build tools for api 17

to

android-sdk/platform-tools/

Not the best solution but works.

Hope it helps.

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

15 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

Related Questions

Error build android app 1 Answer

Problem in android plugin creation.? 0 Answers

Google.IOSResolver.dll' will not be loaded 2 Answers

BCE0043 unexpected token! pls help. 1 Answer

New Export Error Android 0 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