Android build error (505473)

Hi Everyone , today i try to export .apk file without android device connected
and i got this 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)

the andriod SDK has installed and everything should be ok,
Anyone can help me, How is going on and how is possible to build the android without device?

Thank you.

having the exact same error with device connected
on win8 U4.1.3
it seems Unity refuses the path given in Preferences for android SDK
time to fill a report form…

I had the same problem last week. Unity seems to be having a problem with Android SDK tools version 22. A temporary fix is using version 21. Here is a link to download: https://dl.google.com/android/installer_r21-windows.exe

Thank you :slight_smile: i will try