- Home /
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)
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
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.
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?
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).
This doesn't solve the issue. Unity 4.1.3 f3 and adt-bundle-windows-x86-20130717 with downgraded Android Tools r21 or r20.
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/
Your answer
Follow this Question
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