• 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
1
Question by benfattino · May 17, 2013 at 04:42 PM · androiderrorbuild

Android building error

I try to build an android project, but give me 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)

Unity 4.1.2 Latest Android SDK Latest JDK Java installed Mac OSX Mountain Lion

Somebody help me? Thanks.

Comment
Add comment · Show 1
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 benfattino · Jul 28, 2013 at 04:51 PM 0
Share

Unity 4.2 work fine.

3 Replies

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

Answer by sfilo · May 22, 2013 at 10:05 AM

I found a hack on a different thread that worked for me. If you can't rollback ( because you just installed ADT 22 ) just copy the tools folder from the androi sdk r21 over the tools folder in the adt 22 install and it works.

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 Fritsl · May 22, 2013 at 10:07 AM 0
Share

"just copy the tools folder" - do you mean "Only copy the tools folder", or "Simply copy the tools folder" ?

Thanks.

avatar image sfilo · May 22, 2013 at 10:13 AM 1
Share

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

to

android-sdk/platform-tools/

Here's the original thread from where i got the hack.

http://forum.unity3d.com/threads/176737-unknown-error-when-building-simple-scene?p=1250347#post1250347

avatar image
1

Answer by purdyjo · May 18, 2013 at 11:33 PM

Hey I've found a bit of a fix. If you roll back your Android SDK to revision 21 it will compile perfectly fine. I guess we'll just have to wait until Unity patches it in a later update.

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 Daveoh · May 22, 2013 at 03:26 AM 0
Share

This worked for me. I posted a more clarified/detailed answer here.

avatar image
-1

Answer by Fritsl · May 19, 2013 at 01:01 PM

Same error - for the record. Mac, latest everything.

Many have this problem, maybe the Unity instructions should include the fix?

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

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

can't build android app with facebook sdk 5 Answers

Failed to re-package resources. 16 Answers

CommandInvokationFailure: Failed to re-package resources 1 Answer

Android Build Error 2 Answers

Unable to determine the tools version of the Android SDK 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