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
5
Question by tfrago01 · May 16, 2013 at 02:25 AM · errorbuild errorunkown

Error building Player: Exception: android (invokation failed)

I had my project running and everything was fine. Then i tried adding in some files to get Google play game services to work in my game and everything went wrong. I added in a few files and silly me saved the project and now all i get is the errorr below. I have tried updating SDK tools and remving the files i added but nothing works. Please help.

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)

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

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by BitWize · May 16, 2013 at 12:47 PM

It looks like Unity Android builds break when using the latest Android SDK.

Please check this link. http://forum.unity3d.com/threads/176737-unknown-error-when-building-simple-scene

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
avatar image
4

Answer by drlecks · May 16, 2013 at 01:42 PM

BitWize is right.

The latest version of the android SDK Tools (r22) breaks compatibility with Unity compiler.

The best solution is downgrading to r21 and everything will work again.

Comment
Add comment · Show 3 · 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 GC1983 · Jun 19, 2013 at 08:01 PM 0
Share

I also have been having this issue. I did reinstall and keep the version at 21 with the apk at 14. It then worked once after that. Now it wont work again...any ideas?

avatar image drlecks · Jun 20, 2013 at 02:08 PM 0
Share

I've heard that Unity released a new patch to solve that problem. Check if you have applied that patch and the related consequences of having it (With the new patch you may need the r22).

avatar image banjou · Jul 21, 2013 at 08:39 AM 0
Share

This doesn't solve the issue. Unity 4.1.3 f3 and adt-bundle-windows-x86-20130717 with downgraded Android Tools r21 or r20.

avatar image
3
Wiki

Answer by Nicolaj Schweitz · Aug 19, 2013 at 10:09 PM

As mentioned by jvil in the forum thread:

copy the content from folder:

  android-sdk/build-tools/17.0.0/

to

  android-sdk/platform-tools/



Comment
Add comment · Show 3 · 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 esekmule · Dec 05, 2013 at 11:57 PM 0
Share

thx Nicolaj, the copy method works great. :-)

avatar image Artyom-Abgaryan · Feb 08, 2014 at 05:27 PM 0
Share

nice hack man ! thanks

avatar image Bismarck19931028 · Mar 13, 2014 at 03:02 PM 0
Share

how to do this?

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

22 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 0 Answers

CommandInvokationFailure: Failed to re-package resources after integrating Chartboost 2 Answers

Error Building Player: Win32Exception. No solution works 1 Answer

Build gives BSoD on launch 0 Answers

Xcode error when Archiving linker command failed with exit code 1 (use -v to see invocation) clang 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