Android Build error! Please help!

Whenever I try to build an apk, I get 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)

Can anybody help me? Please! Thanks!

Do you have an updated Android SDK installed?

Yes, and that was the problem. For everyone who has the exact same issue as I had, just download this SDK right here, and install it! Android SDK working

I will NOT recommend downloading the SDK from other site than the official Android website. Downloading from a third-site (unofficially) doesn’t make any sense and doesn’t guarantee that wasn’t corrupted by anyone.

Android SDK r21 it’s available to download officially from Google here: http://dl.google.com/android/android-sdk_r21-windows.zip

ya i agree with jvil.just follow this thread.Hope this helps…
issue after upgrading rev v22

You forgot “and enjoy your new virus” :wink: