- Home /
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?
Answer by Ben-Stoneman · Jun 04, 2013 at 05:08 PM
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
Follow this Question
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